X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=plugins-noroot.vim;h=6951a0725155e4333748d4e1839ea85f848a1b20;hb=df9773e012a0f8a387e37730170766474abfc3ca;hp=da94c500d8634a761cc65e4cd319dca9a39a5cb2;hpb=16bc2290e1fad3db8a4116f5c61df91d9fd02b12;p=vimconf.git diff --git a/plugins-noroot.vim b/plugins-noroot.vim index da94c50..6951a07 100644 --- a/plugins-noroot.vim +++ b/plugins-noroot.vim @@ -1,7 +1,7 @@ Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'} -" Disable conditional loading to have gutentags also for tex files -Plug 'ludovicchabant/vim-gutentags' ", {'for': ['c', 'cpp', 'objc', 'tex']} +" Conditional loading does not work, see github issue #823 +Plug 'ludovicchabant/vim-gutentags' "Plug 'vim-scripts/Conque-GDB', {'for': ['c', 'cpp', 'objc']} Plug 'editorconfig/editorconfig-vim' @@ -45,4 +45,13 @@ function PluginsNorootConfig() let g:vim_markdown_math=1 au FileType markdown call RagtagInit() + + " Generally disable gutentags, but enable for some filetypes + let g:gutentags_enabled = 0 + au FileType c,cpp,objc,tex let g:gutentags_enabled = 1 + " Make manually created tags files also root markers + let g:gutentags_project_root = ['tags'] + let g:gutentags_cache_dir = expand('~/.cache/vim/ctags/') + " Do not automatically generate on browsing + let g:gutentags_generate_on_missing = 0 endfunction