summaryrefslogtreecommitdiff
path: root/after
diff options
context:
space:
mode:
Diffstat (limited to 'after')
-rw-r--r--after/plugin/vim-gutentags.lua82
1 files changed, 77 insertions, 5 deletions
diff --git a/after/plugin/vim-gutentags.lua b/after/plugin/vim-gutentags.lua
index 40bd630..3a4b4cc 100644
--- a/after/plugin/vim-gutentags.lua
+++ b/after/plugin/vim-gutentags.lua
@@ -1,6 +1,78 @@
+vim.g.gutentags_ctags_exclude = {
+ '*.git',
+ '*.svg',
+ '*.hg',
+ '*/tests/*',
+ 'build',
+ 'dist',
+ '*sites/*/files/*',
+ 'bin',
+ 'node_modules',
+ 'bower_components',
+ 'cache',
+ 'compiled',
+ 'docs',
+ 'example',
+ 'bundle',
+ 'vendor',
+ '*.md',
+ '*-lock.json',
+ '*.lock',
+ '*bundle*.js',
+ '*build*.js',
+ '.*rc*',
+ '*.json',
+ '*.min.*',
+ '*.map',
+ '*.bak',
+ '*.zip',
+ '*.pyc',
+ '*.class',
+ '*.sln',
+ '*.Master',
+ '*.csproj',
+ '*.tmp',
+ '*.csproj.user',
+ '*.cache',
+ '*.pdb',
+ 'tags*',
+ 'cscope.*',
+ '*.css',
+ '*.less',
+ '*.scss',
+ '*.exe',
+ '*.dll',
+ '*.mp3',
+ '*.ogg',
+ '*.flac',
+ '*.swp',
+ '*.swo',
+ '*.bmp',
+ '*.gif',
+ '*.ico',
+ '*.jpg',
+ '*.png',
+ '*.rar',
+ '*.zip',
+ '*.tar',
+ '*.tar.gz',
+ '*.tar.xz',
+ '*.tar.bz2',
+ '*.pdf',
+ '*.doc',
+ '*.docx',
+ '*.ppt',
+ '*.pptx',
+}
+
vim.opt.tags = './tags'
-vim.g.gutentags_ctags_exclude_wildignore = 1
-vim.g.gutentags_ctags_exclude = {
- 'node_modules', '_build', 'build', 'CMakeFiles', '.mypy_cache', 'venv',
- '*.md', '*.tex', '*.css', '*.html', '*.json', '*.xml', '*.xmls', '*.ui',
- '*.py', '*.sh', '*.sql', '*.wsgi'}
+vim.g.gutentags_add_default_project_roots = false
+vim.g.gutentags_project_root = { '.git' }
+
+vim.g.gutentags_generate_on_write = true
+vim.g.gutentags_generate_on_new = true
+vim.g.gutentags_generate_on_missing = true
+vim.g.gutentags_generate_on_write = true
+vim.g.gutentags_generate_on_empty_buffer = false
+vim.g.gutentags_ctags_extra_args = { '--tag-relative=yes', '--fields=+ailmnS' }
+vim.g.gutentags_ctags_exclude_wildignore = true