From: Stefan Huber Date: Mon, 22 Oct 2018 08:04:50 +0000 (+0200) Subject: plugins: Speedup startuptime by lazy load X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=8231877addd0f0f74e882a5ff257d58abcdeba92;p=vimconf.git plugins: Speedup startuptime by lazy load --- diff --git a/init.vim b/init.vim index 52bce18..6d8e56e 100644 --- a/init.vim +++ b/init.vim @@ -60,7 +60,11 @@ call neomake#configure#automake('w') let g:clang_compilation_database = '.' -let g:deoplete#enable_at_startup=1 +" Speedup deoplete startup time, see deoplete FAQ +let g:python3_host_prog = '/usr/bin/python3' +" deoplete requires huge startuptime. Delay loading upon first InsertEnter. +let g:deoplete#enable_at_startup = 0 +autocmd InsertEnter * call deoplete#enable() "augroup pencil "au! diff --git a/plugins-local.vim.example b/plugins-local.vim.example index 0087602..ab6b575 100644 --- a/plugins-local.vim.example +++ b/plugins-local.vim.example @@ -1,8 +1,8 @@ Plug 'jamessan/vim-gnupg' " An alternative to youcompleteme (ycm) -Plug 'justmao945/vim-clang' +Plug 'justmao945/vim-clang', {'for': ['c', 'cpp', 'objc']} -Plug 'vim-scripts/Conque-GDB' +Plug 'vim-scripts/Conque-GDB', {'for': ['c', 'cpp', 'objc']} "Plug 'kien/tabman.vim' diff --git a/plugins.vim b/plugins.vim index e90edc3..fb2efaa 100644 --- a/plugins.vim +++ b/plugins.vim @@ -21,8 +21,8 @@ Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'} Plug 'plasticboy/vim-markdown', {'for': 'markdown'} Plug 'lvht/tagbar-markdown', {'for': 'markdown'} -Plug 'PProvost/vim-markdown-jekyll' -Plug 'tpope/vim-liquid' +Plug 'PProvost/vim-markdown-jekyll', {'for': 'markdown'} +Plug 'tpope/vim-liquid', {'for': ['liquid', 'html', 'xml', 'markdown']} Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'} Plug 'hail2u/vim-css3-syntax', {'for': ['scss', 'css']} @@ -30,7 +30,7 @@ Plug 'ap/vim-css-color', {'for': ['scss', 'css']} Plug 'tpope/vim-ragtag', {'for': ['html', 'xml']} -Plug 'lervag/vimtex' +Plug 'lervag/vimtex', {'for': 'tex'} if has('nvim') Plug 'Shougo/deoplete.nvim', {'do': ':UpdateRemotePlugins' }