Coc.nvim install

From wikinotes
Revision as of 15:26, 28 December 2021 by Will (talk | contribs) (Created page with "<syntaxhighlight lang="vim"> # archlinux sudo pacman -S \ nodejs \ npm # macos brew install node.js \ npm npm install -g neovim </syntaxhighlight> <syntaxhighlight...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
# archlinux
sudo pacman -S \
  nodejs \
  npm

# macos
brew install
  node.js \
  npm

npm install -g neovim
" install coc
Plug "https://github.com/neoclide/coc.nvim", {'branch': 'release'}

" install coc languages

" NOTE: technically this is supposed to work, but it doesn't for all languages
" Plug 'https://github.com/neoclide/coc-tsserver', {'do': 'yarn install --frozen-lockfile'}

if !(isdirectory($HOME."/.config/coc/extensions/node_modules/coc-sh"))
  CocInstall coc-sh
endif

NOTE:

Officially, installing servers can be done from vim-plug, but I have not had success with this.

CocInstall works every time. It's probably best to check for files on disk.