vim-tags
vim-tags copied to clipboard
customize generate option
For now, I know I can use vim_tags_use_language_field
to specify --fields=+l
option.
What if I want to specify more complex option? For example, --fields=+l --c-kinds=+p --c++-kinds=+p --extra=+q
.
I want to use vim_tags_project_tags_command
to achieve that. But it is not really convenient. The {OPTIONS}
is modified internally, which means I have to keep {OPTIONS}
and specify vim_tags_project_tags_command
like this, {CTAGS} -R --fields=+l --c-kinds=+p --c++-kinds=+p --extra=+q {OPTIONS} {DIRECTORY} 2>/dev/null
.
Maybe you can change vim_tags_use_language_field
to something like vim_tags_generate_options
and use it like this,
let g:vim_tags_generate_options='--fields=+l --c-kinds=+p --c++-kinds=+p --extra=+q'
.
Thank you :)