summaryrefslogtreecommitdiff
path: root/coc-settings.json
diff options
context:
space:
mode:
authorlistout <listout@protonmail.com>2021-08-09 20:16:33 +0530
committerlistout <listout@protonmail.com>2021-08-09 20:16:33 +0530
commitb3c75bf7c4a8a99436c81e653dafe66ec212c1ea (patch)
tree0a17f245830a19b82f66f508499d966e63bdb635 /coc-settings.json
parent326427940e402637e687dd9b8970b9f78bc0e98e (diff)
using ccls as c/c++ language server
Diffstat (limited to 'coc-settings.json')
-rw-r--r--coc-settings.json27
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
+ }
+ }
+ }
}
}