c0r73x / neotags.nvim

Tag highlight in neovim
MIT License
122 stars 9 forks source link

Clarity for ag use in readme.md #16

Closed bearcatsandor closed 7 years ago

bearcatsandor commented 7 years ago

The way the following is written is unclear to me:

To use the_silver_searcher or similar applications when generating tags you can do something like this.

let g:neotags_appendpath = 0 let g:neotags_recursive = 0

" Use this option for the_silver_searcher let g:neotags_ctags_bin = 'ag -g "" '. getcwd() .' | ctags' " Or this one for ripgrep. Not both. let g:neotags_ctags_bin = 'rg --files '. getcwd() .' | ctags' let g:neotags_ctags_args = [ \ '-L -', \ '--fields=+l', \ '--c-kinds=+p', \ '--c++-kinds=+p', \ '--sort=no', \ '--extras=+q' \ ]

Is the ctags_args setting applicable to both the ag and the ripgrep setup?

c0r73x commented 7 years ago

Hi, yes all except the ctags_bin is for ripgrep or the_silver_searcher. I will change the readme to make it clearer.

bearcatsandor commented 7 years ago

Thank you