feat(live-filter): add ability to live filter out nodes in the tree (#1056)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
local events = require "nvim-tree.events"
|
||||
local explorer = require "nvim-tree.explorer"
|
||||
local live_filter = require "nvim-tree.live-filter"
|
||||
local view = require "nvim-tree.view"
|
||||
|
||||
local M = {}
|
||||
@@ -28,6 +29,9 @@ function M.get_nodes_starting_line()
|
||||
if view.is_root_folder_visible(M.get_cwd()) then
|
||||
offset = offset + 1
|
||||
end
|
||||
if live_filter.filter then
|
||||
return offset + 1
|
||||
end
|
||||
return offset
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user