summaryrefslogtreecommitdiff
path: root/lsp
diff options
context:
space:
mode:
authorLibravatar Mora Unie Youer <[email protected]>2025-10-07 13:51:15 +0300
committerLibravatar Mora Unie Youer <[email protected]>2025-10-07 13:51:15 +0300
commit36dc84be907adf0b8d5f24f706c88cf5395ca6be (patch)
tree4e388bf3ada8ec226e550bdcbc783a2c360118ed /lsp
parentfix: bufferline catppuccin theme (diff)
downloadneovim-configuration-36dc84be907adf0b8d5f24f706c88cf5395ca6be.tar.gz
neovim-configuration-36dc84be907adf0b8d5f24f706c88cf5395ca6be.tar.bz2
neovim-configuration-36dc84be907adf0b8d5f24f706c88cf5395ca6be.tar.lz
neovim-configuration-36dc84be907adf0b8d5f24f706c88cf5395ca6be.tar.xz
neovim-configuration-36dc84be907adf0b8d5f24f706c88cf5395ca6be.tar.zst
neovim-configuration-36dc84be907adf0b8d5f24f706c88cf5395ca6be.zip
feat: add `clangd` for C/++ files
Diffstat (limited to 'lsp')
-rw-r--r--lsp/clangd.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/lsp/clangd.lua b/lsp/clangd.lua
new file mode 100644
index 0000000..9aced07
--- /dev/null
+++ b/lsp/clangd.lua
@@ -0,0 +1,21 @@
+return {
+ cmd = { "clangd" },
+ filetypes = { "c", "cpp", "objc", "objcpp", "cuda" },
+ root_markers = {
+ ".clangd",
+ ".clang-tidy",
+ ".clang-format",
+ "compile_commands.json",
+ "compile_flags.txt",
+ "configure.ac", -- AutoTools
+ ".git",
+ },
+ capabilities = {
+ textDocument = {
+ completion = {
+ editsNearCursor = true,
+ },
+ },
+ offsetEncoding = { "utf-8", "utf-16" },
+ },
+}