1
0
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:
Eric Wong 2024-04-16 14:08:57 +08:00
parent 545a3bc5fa
commit 17a380aed9

View File

@ -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, {