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

exclude some files when using gutentags to generate the tag file.

This is the correct way.
This commit is contained in:
jdhao 2020-11-01 17:38:09 +08:00
parent 7bed2c4550
commit ad0b12290a

View File

@ -476,16 +476,7 @@ 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'
let g:gutentags_ctags_exclude = ['*.md', '*.html', '*.json', '*.toml', '*.css', '*.js',]
""""""""""""""""""""""""""" vista settings """"""""""""""""""""""""""""""""""
" Double click to go to a tag