feat(#2827): Multi Instance: Refactor: nvim-tree.live-filter

This commit is contained in:
Mateusz Russak
2024-07-23 18:49:39 +02:00
parent 4e396b2624
commit cc2d8c7475
3 changed files with 42 additions and 31 deletions

View File

@@ -3,6 +3,7 @@ local notify = require "nvim-tree.notify"
local watch = require "nvim-tree.explorer.watch"
local explorer_node = require "nvim-tree.explorer.node"
local Marks = require "nvim-tree.marks"
local LiveFilter = require "nvim-tree.live-filter"
local M = {}
@@ -38,6 +39,7 @@ function Explorer.new(path)
absolute_path = path,
nodes = {},
open = true,
live_filter = LiveFilter:new(M.config),
marks = Marks:new(),
}, Explorer)
explorer.watcher = watch.create_watcher(explorer)