使用vim-plug安裝coc.nvim,按照官網說明在.vimrc中配置如下:
Plug 'neoclide/coc.nvim', {'branch': 'release'}
結果一直報錯。
錯誤提示:
[coc.nvim] javascript file not found, please compile the code or use release branch.
Press ENTER or type command to continue
解決方案:
1.進入coc.nvim目錄
cd ~/.vim/plugged/coc.nvim/
2.執行install.sh
./install.sh
3.進入vim執行命令
:PlugInstall
問題解決!
附上截圖: