atags.vim is a Neovim plugin that helps you creating and updating your tag files.
Using vim-plug
Plug 'fntlnz/atags.vim'
The generation command is a list of commands that will be executed to generate your tags.
This is the default generation command:
let g:atags_build_commands_list = [
\"ctags -R -f tags.tmp",
\"awk 'length($0) < 400' tags.tmp > tags",
\"rm tags.tmp"
\]
<Leader>t
map <Leader>t :call atags#generate()<cr>
autocmd BufWritePost * call atags#generate()
let g:atags_build_commands_list = [
\"docker run --rm -v $PWD:/project -w /project fntlnz/pfff:latest stags -lang php -o tags -vim ."
\]
]
.gitignore
let g:atags_build_commands_list = [
\ 'ag -g "" | ctags -L - --fields=+l -f tags.tmp',
\ 'awk "length($0) < 400" tags.tmp > tags',
\ 'rm tags.tmp'
\ ]
.gitignore
let g:atags_build_commands_list = [
\ 'ag --php -g "" | ctags -L - --fields=+l -f tags.tmp',
\ 'awk "length($0) < 400" tags.tmp > tags',
\ 'rm tags.tmp'
\ ]
jobstart