Skip to content

Commit 4facf27

Browse files
committed
fix: Fix gutentags configuration
1 parent 4fe95e0 commit 4facf27

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

plugin.default.vim

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,45 @@ let g:neosnippet#scope_aliases['python'] = 'python,django'
130130
" Gutentag
131131
let g:gutentags_ctags_tagfile=".ctags"
132132
let g:gutentags_exclude_project_root=['/etc']
133-
let g:gutentags_project_root = ['.git', '.svn', '.project' ]
133+
let g:gutentags_add_default_project_roots = 0
134+
let g:gutentags_project_root = ['.git', '.svn', '.project', 'package.json' ]
134135
let g:gutentags_file_list_command = {
135136
\ 'markers': {
136137
\ '.git': 'git ls-files'
137138
\ }
138139
\ }
140+
let g:gutentags_exclude_filetypes = ['gitcommit', 'gitconfig', 'gitrebase',
141+
\ 'gitsendemail', 'git']
142+
let g:gutentags_cache_dir = expand('~/.gutentags_cache')
143+
let g:gutentags_generate_on_new = 1
144+
let g:gutentags_generate_on_missing = 1
145+
let g:gutentags_generate_on_write = 1
146+
let g:gutentags_generate_on_empty_buffer = 0
147+
let g:gutentags_ctags_extra_args = ['--tag-relative=yes', '--fields=+ailmnS']
148+
let g:gutentags_ctags_exclude = [
149+
\ '*.git', '*.svn', '*.hg',
150+
\ 'cache', 'build', 'dist', 'bin', 'node_modules', 'bower_components',
151+
\ '*-lock.json', '*.lock',
152+
\ '*.min.*',
153+
\ '*.bak',
154+
\ '*.zip',
155+
\ '*.pyc',
156+
\ '*.class',
157+
\ '*.sln',
158+
\ '*.csproj', '*.csproj.user',
159+
\ '*.tmp',
160+
\ '*.cache',
161+
\ '*.vscode',
162+
\ '*.pdb',
163+
\ '*.exe', '*.dll', '*.bin',
164+
\ '*.mp3', '*.ogg', '*.flac',
165+
\ '*.swp', '*.swo',
166+
\ '.DS_Store', '*.plist',
167+
\ '*.bmp', '*.gif', '*.ico', '*.jpg', '*.png', '*.svg',
168+
\ '*.rar', '*.zip', '*.tar', '*.tar.gz', '*.tar.xz', '*.tar.bz2',
169+
\ '*.pdf', '*.doc', '*.docx', '*.ppt', '*.pptx', '*.xls',
170+
\]
171+
139172
" vim-markdown
140173
let g:mkdp_browser = 'firefox'
141174

0 commit comments

Comments
 (0)