From b3c75bf7c4a8a99436c81e653dafe66ec212c1ea Mon Sep 17 00:00:00 2001
From: listout <listout@protonmail.com>
Date: Mon, 9 Aug 2021 20:16:33 +0530
Subject: using ccls as c/c++ language server

---
 coc-settings.json | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

(limited to 'coc-settings.json')

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
+				}
+			}
+		}
 	}
 }
-- 
cgit v1.2.3