From ca2d4d3e9dfdb9b0db73610dd722fe6cc0e7f184 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Thu, 3 Jan 2019 12:57:39 +0100 Subject: [PATCH] Enable ccls for C/C++/Obj-C --- .config/nvim/coc-settings.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.config/nvim/coc-settings.json b/.config/nvim/coc-settings.json index 60250ee..dbf51b1 100644 --- a/.config/nvim/coc-settings.json +++ b/.config/nvim/coc-settings.json @@ -9,6 +9,14 @@ "filetypes": ["sh"], "ignoredRootPaths": ["~"] }, + "ccls": { + "command": "ccls", + "filetypes": ["c", "cpp", "objc", "objcpp"], + "rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"], + "initializationOptions": { + "cacheDirectory": "/tmp/ccls" + } + }, "dockerfile": { "command": "docker-langserver", "filetypes": ["dockerfile"],