X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=plugins-noroot.vim;h=d801823df55187a2a65442c23e5fc0746e03f43b;hp=0aa1ed8855799e60676a8cd47a7c62c08b2f8e4d;hb=HEAD;hpb=1fbc02c2a0bc5522f32773fd98bb8f988d44d9ec diff --git a/plugins-noroot.vim b/plugins-noroot.vim index 0aa1ed8..81411f9 100644 --- a/plugins-noroot.vim +++ b/plugins-noroot.vim @@ -1,6 +1,7 @@ Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'} -Plug 'ludovicchabant/vim-gutentags', {'for': ['c', 'cpp', 'objc']} +" 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' @@ -24,10 +25,49 @@ Plug 'Shougo/neosnippet-snippets' Plug 'tpope/vim-speeddating' Plug 'mattn/calendar-vim' -" Costs a second startup time -Plug 'dbeniamine/cheat.sh-vim', {'on': 'Cheat'} +Plug 'vim-scripts/loremipsum', {'on': 'Loremipsum'} +Plug 'ggandor/leap.nvim' -if g:lowendbox == 0 - source ~/.vim/plugins-noroot-nolowendbox.vim -endif +function PluginsNorootConfig() + let g:localvimrc_persistent = 1 + + let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*'] + + "augroup pencil + "au! + "au FileType markdown,mkd call pencil#init() + "au FileType text call pencil#init() + "au FileType mail call pencil#init() + "au FileType tex call pencil#init() + "augroup END + + let g:vim_markdown_frontmatter=1 + 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 <