mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-17 17:16:26 +00:00
Add gotags to FZFBTags
This commit is contained in:
parent
e57861168f
commit
3b4c328032
@ -12,6 +12,14 @@ let g:fzf_action = {
|
||||
" Ctrl-T to launch standard file search
|
||||
nnoremap <C-t> :FZF<CR>
|
||||
|
||||
" Override BTags to attempt to include gotags as well
|
||||
command! -bang -nargs=* FZFBTags
|
||||
\ if &filetype == 'go'
|
||||
\| call fzf#vim#buffer_tags(<q-args>, printf('gotags -silent -sort %s | sed /^!_TAG_/d', shellescape(expand('%'))), <bang>0)
|
||||
\| else
|
||||
\| call fzf#vim#buffer_tags(<q-args>, <bang>0)
|
||||
\| endif
|
||||
|
||||
" Leader Commands
|
||||
|
||||
" Find buffers
|
||||
|
Loading…
Reference in New Issue
Block a user