summaryrefslogtreecommitdiff
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
parentd625cb498865fe8f59c7adec5ef2bc9a3d1e6d07 (diff)
using the ccls language server
-rw-r--r--coc-settings.json27
-rw-r--r--configs/coc.vim3
2 files changed, 28 insertions, 2 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
+ }
+ }
+ }
}
}
diff --git a/configs/coc.vim b/configs/coc.vim
index 4f9b8ea..47e8acb 100644
--- a/configs/coc.vim
+++ b/configs/coc.vim
@@ -8,8 +8,7 @@ let g:coc_global_extensions = [
\ 'coc-word',
\ 'coc-syntax',
\ 'coc-ultisnips',
- \ 'coc-vimtex',
- \ 'coc-clangd'
+ \ 'coc-vimtex'
\]
" Faster completion