From 17a380aed90318e1a3054f81f50e2c8ca3e9a9cf Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 16 Apr 2024 14:08:57 +0800 Subject: [PATCH] feat(ctags): remove tags before running ctags --- bundle/gtags.vim/lua/ctags/init.lua | 1 + 1 file changed, 1 insertion(+) 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, {