1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

fix(ctags): fix project_root

This commit is contained in:
wsdjeg 2022-11-12 22:41:43 +08:00
parent c25a40d3e0
commit ba9af706be

View File

@ -51,6 +51,7 @@ endfunction
function! ctags#update(...) abort
let project_root = getcwd()
if !s:version_checked
call s:LOGGER.info('start to check ctags version')
call s:JOB.start([g:gtags_ctags_bin, '--version'], {
@ -61,7 +62,6 @@ function! ctags#update(...) abort
else
call s:LOGGER.info('update ctags database for ' . project_root)
endif
let project_root = getcwd()
let dir = s:FILE.unify_path(g:tags_cache_dir)
\ . s:FILE.path_to_fname(project_root)
let cmd = [g:gtags_ctags_bin]