mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-15 19:45:46 +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()
|
function M.current_root()
|
||||||
local bufname = fn.bufname('%')
|
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
|
return
|
||||||
end
|
end
|
||||||
if
|
if
|
||||||
|
Loading…
x
Reference in New Issue
Block a user