mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 01:10:05 +08:00
fix(projectmanager): use nested autocmd
neo-tree do not update when switch between project.
This commit is contained in:
parent
5fbcf3d430
commit
e9b5e713f9
@ -278,7 +278,7 @@ let g:unite_source_menu_menus.Projects.command_candidates = get(g:unite_source_m
|
||||
if sp_opt.project_auto_root == 1 then
|
||||
sp.cmd('augroup spacevim_project_rooter')
|
||||
sp.cmd('autocmd!')
|
||||
sp.cmd('autocmd VimEnter,BufEnter * call SpaceVim#plugins#projectmanager#current_root()')
|
||||
sp.cmd('autocmd VimEnter,BufEnter * ++nested call SpaceVim#plugins#projectmanager#current_root()')
|
||||
sp.cmd(
|
||||
"autocmd BufWritePost * :call setbufvar('%', 'rootDir', '') | call SpaceVim#plugins#projectmanager#current_root()"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user