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:
parent
7bed2c4550
commit
ad0b12290a
@ -476,16 +476,7 @@ endif
|
|||||||
|
|
||||||
"{{ Navigation and tags
|
"{{ Navigation and tags
|
||||||
""""""""""""""""""""""""""" gutentags settings """"""""""""""""""""""""""""""
|
""""""""""""""""""""""""""" gutentags settings """"""""""""""""""""""""""""""
|
||||||
function! ShouldEnableGutentags(path) abort
|
let g:gutentags_ctags_exclude = ['*.md', '*.html', '*.json', '*.toml', '*.css', '*.js',]
|
||||||
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 """"""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""" vista settings """"""""""""""""""""""""""""""""""
|
||||||
" Double click to go to a tag
|
" Double click to go to a tag
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user