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!
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'
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']}
Plug 'tpope/vim-ragtag', {'for': ['html', 'xml']}
-Plug 'lervag/vimtex'
+Plug 'lervag/vimtex', {'for': 'tex'}
if has('nvim')
Plug 'Shougo/deoplete.nvim', {'do': ':UpdateRemotePlugins' }