diff --git a/vim/rc/plugins/fzf.rc.vim b/vim/rc/plugins/fzf.rc.vim index 08707b6..5f21606 100644 --- a/vim/rc/plugins/fzf.rc.vim +++ b/vim/rc/plugins/fzf.rc.vim @@ -12,6 +12,14 @@ let g:fzf_action = { " Ctrl-T to launch standard file search nnoremap :FZF +" Override BTags to attempt to include gotags as well +command! -bang -nargs=* FZFBTags + \ if &filetype == 'go' + \| call fzf#vim#buffer_tags(, printf('gotags -silent -sort %s | sed /^!_TAG_/d', shellescape(expand('%'))), 0) + \| else + \| call fzf#vim#buffer_tags(, 0) + \| endif + " Leader Commands " Find buffers