summaryrefslogtreecommitdiff
path: root/dot_config/nvim/lsp/clangd.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/nvim/lsp/clangd.fnl')
-rw-r--r--dot_config/nvim/lsp/clangd.fnl8
1 files changed, 8 insertions, 0 deletions
diff --git a/dot_config/nvim/lsp/clangd.fnl b/dot_config/nvim/lsp/clangd.fnl
new file mode 100644
index 0000000..c41824e
--- /dev/null
+++ b/dot_config/nvim/lsp/clangd.fnl
@@ -0,0 +1,8 @@
+{:cmd [:clangd :--background-index]
+ :filetypes [:c :cpp]
+ :root_markers [:.clangd
+ :.clang-format
+ :compile_commands.json :compile_flags.txt]
+ :flags {:debounce_text_changes 20}
+ :capabilities {:textDocument {:completion {:editsNearCursor true}}
+ :offsetEncoding [:utf-8 :utf-16]}}