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:
parent
665727ada3
commit
69127e6586
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user