summaryrefslogtreecommitdiff
path: root/coc-settings.json
diff options
context:
space:
mode:
authorlistout <listout@protonmail.com>2021-09-15 00:10:08 +0530
committerlistout <listout@protonmail.com>2021-09-15 00:10:08 +0530
commit2de6e390c35411634198cc65099daeb983ffecb1 (patch)
treeff2518905f983af8162b567b0e508227306f576f /coc-settings.json
parentd625cb498865fe8f59c7adec5ef2bc9a3d1e6d07 (diff)
using the ccls 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 2402405..9be1360 100644
--- a/coc-settings.json
+++ b/coc-settings.json
@@ -54,5 +54,32 @@
"markdown.pandoc": [
"tex"
]
+ },
+ "languageserver": {
+ "ccls": {
+ "command": "ccls",
+ "filetypes": [
+ "c",
+ "cc",
+ "cpp",
+ "c++",
+ "objc",
+ "objcpp"
+ ],
+ "rootPatterns": [
+ ".ccls",
+ "compile_commands.json",
+ ".git/",
+ ".hg/"
+ ],
+ "initializationOptions": {
+ "cache": {
+ "directory": "/tmp/ccls"
+ },
+ "highlight": {
+ "lsRanges": true
+ }
+ }
+ }
}
}