From 5fae56fb406b60393df6b32cd948bf02c0096c49 Mon Sep 17 00:00:00 2001 From: wongxy Date: Sat, 23 Jul 2022 15:56:01 +0800 Subject: [PATCH] docs(neovim/vim): Update instruction for Coc --- README.md | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 49f31a7..ee159a7 100644 --- a/README.md +++ b/README.md @@ -194,18 +194,25 @@ Install the `zls-vscode` extension from [here](https://github.com/zigtools/zls-v #### CoC - Install the CoC engine from [here](https://github.com/neoclide/coc.nvim). -- Issue `:CocConfig` from within your Vim editor, and the following snippet: -```json -{ - "languageserver": { - "zls" : { - "command": "command_or_path_to_zls", - "filetypes": ["zig"] +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": { + "zls" : { + "command": "command_or_path_to_zls", + "filetypes": ["zig"] + } } - } -} -``` + } + ``` #### YouCompleteMe - Install YouCompleteMeFrom [here](https://github.com/ycm-core/YouCompleteMe.git).