aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-11-01 17:38:09 +0800
committerjdhao <jdhao@hotmail.com>2020-11-01 17:38:09 +0800
commitad0b12290ab9b8bf89e1dd9d0a309ac4d320efb9 (patch)
tree595dd6a937e4697441438508caa9d26876aa0785 /core
parent7bed2c45509e107841d61bb03958f53887f5cfe6 (diff)
exclude some files when using gutentags to generate the tag file.
This is the correct way.
Diffstat (limited to 'core')
-rw-r--r--core/plugins.vim11
1 files changed, 1 insertions, 10 deletions
diff --git a/core/plugins.vim b/core/plugins.vim
index 0839c7c..55d896a 100644
--- a/core/plugins.vim
+++ b/core/plugins.vim
@@ -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