From 3b4c328032a641d280b5a94dd81de3946764660a Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 25 Oct 2017 23:29:20 -0700 Subject: [PATCH] Add gotags to FZFBTags --- vim/rc/plugins/fzf.rc.vim | 8 ++++++++ 1 file changed, 8 insertions(+) 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