diff options
author | talha <talha@talhaamir.xyz> | 2024-01-08 21:09:04 +0500 |
---|---|---|
committer | talha <talha@talhaamir.xyz> | 2024-01-08 21:09:04 +0500 |
commit | 40a03a865a7ee31561c4150819f080b932ab17de (patch) | |
tree | a705ecec42644f2f24a0a9d4060c9705a4c2572c /after | |
parent | ba9dc1c6b6488ac52a18454ee168d6bf3d56640e (diff) |
Working on vim-gutentags config
Diffstat (limited to 'after')
-rw-r--r-- | after/plugin/vim-gutentags.lua | 82 |
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 |