diff options
| author | 2025-10-07 13:51:15 +0300 | |
|---|---|---|
| committer | 2025-10-07 13:51:15 +0300 | |
| commit | 36dc84be907adf0b8d5f24f706c88cf5395ca6be (patch) | |
| tree | 4e388bf3ada8ec226e550bdcbc783a2c360118ed /lsp | |
| parent | fix: bufferline catppuccin theme (diff) | |
| download | neovim-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 '')
| -rw-r--r-- | lsp/clangd.lua | 21 |
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" }, + }, +} |
