mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
add NERDTreeCustomIgnoreFilter hook
this gives users a chance to filter out nodes using whatever logic they please
This commit is contained in:
@@ -2306,6 +2306,10 @@ function! s:Path.ignore()
|
||||
return 1
|
||||
endif
|
||||
|
||||
if exists("*NERDTreeCustomIgnoreFilter") && NERDTreeCustomIgnoreFilter(self)
|
||||
return 1
|
||||
endif
|
||||
|
||||
return 0
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user