From 7660028ca49558c351b42e6e6478ce2757451942 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Sat, 17 Aug 2019 14:12:35 +0100 Subject: [PATCH] coc#add_extension --- .gitignore | 1 + config/plugins.nvim.vim | 12 ++++-------- vimrc | 5 +++++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 7a65dc1..374eb1b 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ autoload/plug.vim .is-dev vimrc-config vimrc-overrides +.vimtmp/ diff --git a/config/plugins.nvim.vim b/config/plugins.nvim.vim index a2ed7e5..c4faa62 100644 --- a/config/plugins.nvim.vim +++ b/config/plugins.nvim.vim @@ -47,14 +47,9 @@ "}}} " #coc.nvim{{{ " https://github.com/neoclide/coc.nvim - - " installed extensions: - " coc-vetur - " coc-python - " coc-phpls - " coc-json - " coc-css - " coc-eslint + + " SEE BOTTOM OF VIMRC FOR coc#add_extension statement + " for some reason fails when added some other places Plug 'neoclide/coc.nvim', {'tag': '*', 'do': { -> coc#util#install()}} @@ -78,6 +73,7 @@ command! -nargs=0 Format :call CocAction('format') command! -nargs=? Fold :call CocAction('fold', ) + " }}} " #delimitMate{{{ " https://github.com/Raimondi/delimitMate diff --git a/vimrc b/vimrc index 1362091..d9b374a 100644 --- a/vimrc +++ b/vimrc @@ -16,6 +16,7 @@ if has('nvim') call plug#begin('~/.vim/bundle') source ~/.config/vim/config/plugins.nvim.vim + " else if empty(glob('~/.vim/autoload/plug.vim'))"{{{ silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs @@ -823,5 +824,9 @@ iabbrev ct'' content-type: ''; runtime vimrc-overrides "}}} +if has('nvim') +" TODO - try 'coc-tsserver' + call coc#add_extension( 'coc-vetur', 'coc-python', 'coc-phpls', 'coc-json', 'coc-css', 'coc-eslint', 'coc-vimlsp') +endif " vim: set foldmethod=marker: