Tags-generator is a plugin that asynchronous execute ctags / gtags command for neovim / Vim8.
- Vim 8.0 or above or Neovim.
ctagscommand in$PATHgtagscommand in$PATH(optional support)
For vim-plug
Plug 'r-hata/tags-generator.vim'The plugin has the following commands. See Configuration for how to specify options.
-
:GenerateTags -
:GenerateGTAGSThis command can be used when gtags command is enabled.
-
<Plug>(tags-generator)Generate tags with ctags command.
-
<Plug>(tags-generator-g)Generate GTAGS with gtags command.
The following key mappings will NOT be defined if it's already mapped,
or g:tags_generator_no_default_key_mappings has been set to 1.
nmap <Leader>t <Plug>(tags-generator)
nmap <Leader>g <Plug>(tags-generator-g)Tags-generator can specify options for executing ctags / gtags.
-
Default:
ctags -RThis command is used for main
tagsgeneration.let g:tags_command = '{CTAGS} -R {OPTION} {DIRECTORY}'
-
Default:
gtagsThis command is used for main
GTAGSgeneration.let g:gtags_command = '{GTAGS} {OPTION} {DIRECTORY}'