Merge pull request #558 from xiyaowong/patch-1
docs(neovim/vim): Update instruction for Coc
This commit is contained in:
commit
6df4405fb1
17
README.md
17
README.md
@ -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
|
||||||
{
|
|
||||||
|
1. Use extension
|
||||||
|
|
||||||
|
Run `:CocInstall coc-zls` to install [coc-zls](https://github.com/xiyaowong/coc-zls),
|
||||||
|
this extension supports the same functionality as the VScode extension
|
||||||
|
|
||||||
|
2. Manually register
|
||||||
|
```json
|
||||||
|
{
|
||||||
"languageserver": {
|
"languageserver": {
|
||||||
"zls" : {
|
"zls" : {
|
||||||
"command": "command_or_path_to_zls",
|
"command": "command_or_path_to_zls",
|
||||||
"filetypes": ["zig"]
|
"filetypes": ["zig"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### YouCompleteMe
|
#### YouCompleteMe
|
||||||
- Install YouCompleteMeFrom [here](https://github.com/ycm-core/YouCompleteMe.git).
|
- Install YouCompleteMeFrom [here](https://github.com/ycm-core/YouCompleteMe.git).
|
||||||
|
Loading…
Reference in New Issue
Block a user