diff options
author | listout <listout@protonmail.com> | 2021-08-09 20:16:33 +0530 |
---|---|---|
committer | listout <listout@protonmail.com> | 2021-08-09 20:16:33 +0530 |
commit | b3c75bf7c4a8a99436c81e653dafe66ec212c1ea (patch) | |
tree | 0a17f245830a19b82f66f508499d966e63bdb635 | |
parent | 326427940e402637e687dd9b8970b9f78bc0e98e (diff) |
using ccls as c/c++ language server
-rw-r--r-- | coc-settings.json | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/coc-settings.json b/coc-settings.json index 64e5cd0..395d32c 100644 --- a/coc-settings.json +++ b/coc-settings.json @@ -52,5 +52,32 @@ "markdown.pandoc": [ "tex" ] + }, + "languageserver": { + "ccls": { + "command": "ccls", + "filetypes": [ + "c", + "cpp", + "objc", + "objcpp", + "arduino" + ], + "rootPatterns": [ + ".ccls", + "compile_commands.json", + ".vim/", + ".git/", + ".hg/" + ], + "initializationOptions": { + "cache": { + "directory": "/tmp/ccls" + }, + "highlight": { + "lsRanges": true + } + } + } } } |