1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 01:40:05 +08:00

fix(projectmanager): skip neo-tree buffer

This commit is contained in:
wsdjeg 2023-06-15 17:50:41 +08:00
parent 917bed7392
commit 45f45774b9

View File

@ -398,7 +398,7 @@ function M.current_root()
or bufname:match('%[defx%]') or bufname:match('%[defx%]')
or bufname:match('^git://') -- this is for git.vim or bufname:match('^git://') -- this is for git.vim
or vim.fn.empty(bufname) == 1 or vim.fn.empty(bufname) == 1
-- or bufname:match('^neo-tree') -- this is for git.vim or bufname:match('^neo%-tree') -- this is for neo-tree.nvim
then then
return return
end end