1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Disable gutentags for certain files.

This commit is contained in:
jdhao 2020-11-01 03:10:34 +08:00
parent 9b162ebab0
commit 76393d321d

View File

@ -475,6 +475,18 @@ endif
"}}
"{{ Navigation and tags
""""""""""""""""""""""""""" gutentags settings """"""""""""""""""""""""""""""
function! ShouldEnableGutentags(path) abort
let l:disable_flist = ['md', 'pandoc', 'html', 'json', 'css', 'js', 'toml']
let l:file_ext = fnamemodify(a:path, ':e')
if index(l:disable_flist, l:file_ext) == -1
return 1
endif
return 0
endfunction
let g:gutentags_init_user_func = 'ShouldEnableGutentags'
""""""""""""""""""""""""""" vista settings """"""""""""""""""""""""""""""""""
" Double click to go to a tag
nnoremap <silent> <2-LeftMouse> :<C-U>call vista#cursor#FoldOrJump()<CR>