Setting everything during PlugLoad function caused some plugins to misbehave. Plugins are now loaded by Plug and their settings can be either set with a file in the plugin directory (this mimicks the old way of setting plugin up during load) or in after/ directory, which sets options *after* everything has loaded.
21 lines
546 B
VimL
21 lines
546 B
VimL
" lazy loading since they require a lot of startup time
|
|
let s:ide_features_loaded=0
|
|
function! Autocomplete_linting_init() abort
|
|
if s:ide_features_loaded || !has('nvim')
|
|
return
|
|
endif
|
|
let s:ide_features_loaded=1
|
|
|
|
call plug#load('ale', 'deoplete.nvim', 'echodoc.vim')
|
|
call echodoc#enable()
|
|
call deoplete#custom#var('omni', 'input_patterns', {
|
|
\ 'pandoc': '@',
|
|
\})
|
|
call deoplete#enable()
|
|
|
|
endfunction
|
|
|
|
" augroup load_ide_features
|
|
" autocmd!
|
|
" autocmd InsertEnter * call Autocomplete_linting_init()
|
|
" augroup END
|