* refactor(#2828): multi instance nvim-tree.explorer.filters * fix: style * fix: apply suggestions from code review Co-authored-by: Alexander Courtis <alex@courtis.org> --------- Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
local view = require "nvim-tree.view"
|
||||
local utils = require "nvim-tree.utils"
|
||||
local Iterator = require "nvim-tree.iterators.node-iterator"
|
||||
local filters = require "nvim-tree.explorer.filters"
|
||||
|
||||
local M = {
|
||||
filter = nil,
|
||||
@@ -57,7 +56,8 @@ end
|
||||
---@param node Node
|
||||
---@return boolean
|
||||
local function matches(node)
|
||||
if not filters.config.enable then
|
||||
local explorer = require("nvim-tree.core").get_explorer()
|
||||
if not explorer or not explorer.filters.config.enable then
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user