summaryrefslogtreecommitdiff
path: root/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'lsp')
-rw-r--r--lsp/clangd.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/lsp/clangd.lua b/lsp/clangd.lua
new file mode 100644
index 0000000..11881b2
--- /dev/null
+++ b/lsp/clangd.lua
@@ -0,0 +1,8 @@
+return {
+ cmd = {
+ 'clangd',
+ '--background-index',
+ },
+ filetypes = {'c','cpp'},
+ root_markers = {'CMakeLists.txt', '.clangd'}
+}