dotfiles/nvim/.config/nvim/plugin/after/lazyload_ale_deoplete_echodoc.vim
Marty Oehme 756e45e037 Reorganize vim plugin settings
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.
2020-02-03 22:23:45 +01:00

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