plugins: Change easychair2 url
[vimconf.git] / plugins-noroot.vim
index da94c500d8634a761cc65e4cd319dca9a39a5cb2..81411f946ee38dd0e9beb7af959538cbaa4de2b6 100644 (file)
@@ -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'
@@ -27,6 +27,7 @@ Plug 'mattn/calendar-vim'
 
 Plug 'vim-scripts/loremipsum', {'on': 'Loremipsum'}
 
+Plug 'ggandor/leap.nvim'
 
 function PluginsNorootConfig()
     let g:localvimrc_persistent = 1
@@ -45,4 +46,28 @@ 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
+    let g:gutentags_ctags_exclude_wildignore = 1
+    let g:gutentags_ctags_exclude = [
+                \'node_modules', '_build', 'build*', 'CMakeFiles', '.*cache*', 'venv',
+                \'*.md', '*.css', '*.html', '*.json', '*.xml', '*.xmls', '*.ui']
+
+    " Allow for reflow of bullet paragraphs
+    let g:vim_markdown_auto_insert_bullets = 0
+
+    let g:calendar_monday = 1
+
+    if has('nvim-0.5')
+lua <<EOF
+    require('leap').set_default_keymaps()
+EOF
+    endif
 endfunction