docs(neovim/vim): Update instruction for Coc

This commit is contained in:
wongxy 2022-07-23 15:56:01 +08:00 committed by GitHub
parent ab62e58515
commit 5fae56fb40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,18 +194,25 @@ Install the `zls-vscode` extension from [here](https://github.com/zigtools/zls-v
#### CoC #### CoC
- Install the CoC engine from [here](https://github.com/neoclide/coc.nvim). - Install the CoC engine from [here](https://github.com/neoclide/coc.nvim).
- Issue `:CocConfig` from within your Vim editor, and the following snippet:
```json Then choose one of the following two ways
{
"languageserver": { 1. Use extension
"zls" : {
"command": "command_or_path_to_zls", Run `:CocInstall coc-zls` to install [coc-zls](https://github.com/xiyaowong/coc-zls),
"filetypes": ["zig"] this extension supports the same functionality as the VScode extension
2. Manually register
```json
{
"languageserver": {
"zls" : {
"command": "command_or_path_to_zls",
"filetypes": ["zig"]
}
} }
} }
} ```
```
#### YouCompleteMe #### YouCompleteMe
- Install YouCompleteMeFrom [here](https://github.com/ycm-core/YouCompleteMe.git). - Install YouCompleteMeFrom [here](https://github.com/ycm-core/YouCompleteMe.git).