diff --git a/coc.nvim.md b/coc.nvim.md index 22edcc7..79efb32 100644 --- a/coc.nvim.md +++ b/coc.nvim.md @@ -8,7 +8,7 @@ Open config file with command `:CocConfig` "ccls": { "command": "ccls", "filetypes": ["c", "cpp", "cuda", "objc", "objcpp"], - "rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"], + "rootPatterns": [".ccls-root", "compile_commands.json"], "initializationOptions": { "cache": { "directory": ".ccls-cache" @@ -48,24 +48,16 @@ au CursorHold * sil call CocActionAsync('highlight') au CursorHoldI * sil call CocActionAsync('showSignatureHelp') ``` -### `$ccls/navigate` +### Completion -Semantic navigation. Roughly, +Install [coc-snippets](https://github.com/neoclide/coc-snippets) to enable LSP snippets. -"D" => first child declaration -"L" => previous declaration -"R" => next declaration -"U" => parent declaration - -```vim -nn :call CocLocations('ccls','$ccls/navigate',{'direction':'D'}) -nn :call CocLocations('ccls','$ccls/navigate',{'direction':'L'}) -nn :call CocLocations('ccls','$ccls/navigate',{'direction':'R'}) -nn :call CocLocations('ccls','$ccls/navigate',{'direction':'U'}) -``` +See [[client.snippetSupport and completion.placeholder|Customization#clientsnippetsupport]] for customization of snippet expansion. ### Cross reference extensions +See [[LSP Extensions]] for the description of these extensions. + ```vim " bases nn xb :call CocLocations('ccls','$ccls/inheritance') @@ -94,4 +86,15 @@ nn xv :call CocLocations('ccls','$ccls/vars') nn xV :call CocLocations('ccls','$ccls/vars',{'kind':1}) nn xx x -``` \ No newline at end of file +``` + +### `$ccls/navigate` + +See [[$ccls/navigate|LSP-Extensions#cclsnavigate]] + +```vim +nn :call CocLocations('ccls','$ccls/navigate',{'direction':'D'}) +nn :call CocLocations('ccls','$ccls/navigate',{'direction':'L'}) +nn :call CocLocations('ccls','$ccls/navigate',{'direction':'R'}) +nn :call CocLocations('ccls','$ccls/navigate',{'direction':'U'}) +```