diff options
| -rw-r--r-- | after/plugin/vim-gutentags.lua | 82 | ||||
| -rw-r--r-- | lua/talha/functions.lua | 10 | ||||
| -rw-r--r-- | lua/talha/set.lua | 2 | 
3 files changed, 88 insertions, 6 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 diff --git a/lua/talha/functions.lua b/lua/talha/functions.lua index b0e8020..d5e2051 100644 --- a/lua/talha/functions.lua +++ b/lua/talha/functions.lua @@ -86,3 +86,13 @@ function GetHomeDir()    end    return nil  end + +function GetCacheDir() +  os_name = vim.loop.os_uname().sysname +  if os_name == 'Linux' then +    return vim.fn.stdpath("data") +  else +    -- os is windows +    return "w:\\tools\\.cache" +  end +end diff --git a/lua/talha/set.lua b/lua/talha/set.lua index d4b995e..68b6ee6 100644 --- a/lua/talha/set.lua +++ b/lua/talha/set.lua @@ -31,4 +31,4 @@ op.updatetime = 50  op.colorcolumn = '120'  -- required to allow mm (mark-move) command to move file -vim.g.netrw_keepdir = 0 +vim.g.netrw_keepdir = 1  | 
