mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 07:10:06 +08:00
feat(ctags): remove tags before running ctags
This commit is contained in:
parent
545a3bc5fa
commit
17a380aed9
@ -90,6 +90,7 @@ function M.update() -- {{{
|
|||||||
end
|
end
|
||||||
|
|
||||||
if vim.fn.isdirectory(dir) == 1 then
|
if vim.fn.isdirectory(dir) == 1 then
|
||||||
|
vim.fn.delete(dir .. '/tags')
|
||||||
extend(cmd, { '-R', '--extra=+f', '-o', dir .. '/tags', project_root })
|
extend(cmd, { '-R', '--extra=+f', '-o', dir .. '/tags', project_root })
|
||||||
log.debug('ctags command:' .. vim.inspect(cmd))
|
log.debug('ctags command:' .. vim.inspect(cmd))
|
||||||
local jobid = job.start(cmd, {
|
local jobid = job.start(cmd, {
|
||||||
|
Loading…
Reference in New Issue
Block a user