coc.nvim 에서는 C, C++, Java, Python, Go 등등 다양한 언어의 Language server 제공

neovim 설치

ubiquitous4g.tistory.com/21

node sj 설치

curl -sL install-node.now.sh/lts | bash

node js 없을경우 애러 메시지

.vimrc 에서  plugin 추가

Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}

 

.vimrc 에서  plugin 설치

:PluginInstall

.vimrc 에서  Coc-clangd 설치

:CocInstall coc-clangd

 

.coc.nvim 에서  clangd 설치

:CocCommand clangd.install

.vimrc 에서  :CocConfig 설정 추가

:CocConfig
  1 {                                                                                                                             
  2     "languageserver": {                                                                                                       
  3         "ccls": {
  4             "command": "ccls",
  5             "filetypes": [
  6                 "c",
  7                 "cpp",
  8                 "objc",
  9                 "objcpp"
 10             ],
 11             "rootPatterns": [
 12                 ".ccls",
 13                 "compile_commands.json",
 14                 ".vim/",
 15                 ".git/",
 16                 ".hg/"
 17             ],
 18             "initializationOptions": {
 19                 "cache": {
 20                     "directory": "/tmp/ccls"
 21                 }  
 22             }
 23         }
 24     }
 25 }

 

ubiquitous4g