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

fix(projectmanager): skip git:// buffer

This commit is contained in:
wsdjeg 2022-10-26 18:24:14 +08:00
parent 665727ada3
commit 69127e6586

View File

@ -362,7 +362,12 @@ end
function M.current_root()
local bufname = fn.bufname('%')
if bufname:match('%[denite%]') or bufname:match('denite-filter') or bufname:match('%[defx%]') then
if
bufname:match('%[denite%]')
or bufname:match('denite-filter')
or bufname:match('%[defx%]')
or bufname:match('^git://') -- this is for git.vim
then
return
end
if