fzf-tags
bridges the gap between tags and fzf.vim.
It combines :tag
and :tselect
into a single improved command.
fzf-tags
looks up the identifier under the cursor.
- If there are 0 or 1 definitions, the behavior is same as
:tag
. - When there are multiple definitions, the results are piped to fzf for interactive filtering (https://github.com/junegunn/fzf#search-syntax).
fzf-tags
uses the built-in :tag
command under the hood, which yields a
couple benefits.
- Tag stack management works as expected (CTRL-T or
:pop
return you to your previous location). - Tag priority works as expected (
:help tag-priority
).
Plug 'zackhsi/fzf-tags'
fzf-tags
exposes the <Plug>(fzf_tags)
mapping.
To override the default jump-to-tag binding:
nmap <C-]> <Plug>(fzf_tags)