diff --git a/config/vim/init.vim b/config/vim/init.vim index 2c330aa..eb79aa2 100644 --- a/config/vim/init.vim +++ b/config/vim/init.vim @@ -47,6 +47,7 @@ endif inoremap jj nnoremap :Files + if exists('+belloff') set belloff+=ctrlg endif @@ -83,3 +84,14 @@ endif let g:airline_powerline_fonts = 1 let g:LatexBox_Folding = 1 let g:NERDTreeHijackNetrw = 1 + +let g:mucomplete#can_complete = { + \'default': { + \'omni': {t -> strlen(&l:omnifunc) > 0 && t =~# '\m\k\%(\k\|\.\)$'} + \} +\} + +" For lifepillar/vim-mucomplete and tpope/vim-endwise to play well together, +" this mapping is required. :he mucomplete-compatibility +imap MyCR (MUcompleteCR) +imap MyCR diff --git a/config/vim/plugins.vim b/config/vim/plugins.vim index 82a6726..dc50cb0 100644 --- a/config/vim/plugins.vim +++ b/config/vim/plugins.vim @@ -39,6 +39,7 @@ endif call Plug('k-takata/minpac', {'type': 'opt'}) call Plug('tpope/vim-sensible') +call Plug('prabirshrestha/async.vim') call Plug('ciaranm/inkpot', {'type': 'opt', 'do': 'colorscheme inkpot'}) call Plug('morhetz/gruvbox', {'type': 'opt'}) @@ -73,6 +74,8 @@ call Plug('sukima/xmledit') call Plug('lepture/vim-jinja') +call Plug('ternjs/tern_for_vim', {'do': {-> async#job#start(['npm', 'install'], {})}}) + call Plug('alx741/yesod.vim') call Plug('pbrisbin/vim-syntax-shakespeare')