diff --git a/bundle/gtags.vim/lua/ctags/init.lua b/bundle/gtags.vim/lua/ctags/init.lua index 78f76a7dc..c94adf19a 100644 --- a/bundle/gtags.vim/lua/ctags/init.lua +++ b/bundle/gtags.vim/lua/ctags/init.lua @@ -90,6 +90,7 @@ function M.update() -- {{{ end if vim.fn.isdirectory(dir) == 1 then + vim.fn.delete(dir .. '/tags') extend(cmd, { '-R', '--extra=+f', '-o', dir .. '/tags', project_root }) log.debug('ctags command:' .. vim.inspect(cmd)) local jobid = job.start(cmd, {