mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 13:37:36 +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
|
" Ctrl-T to launch standard file search
|
||||||
nnoremap <C-t> :FZF<CR>
|
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
|
" Leader Commands
|
||||||
|
|
||||||
" Find buffers
|
" Find buffers
|
||||||
|
Loading…
Reference in New Issue
Block a user