diff options
Diffstat (limited to 'modules/neovim/nvim/lua/config/lsp/clangd.lua')
| -rw-r--r-- | modules/neovim/nvim/lua/config/lsp/clangd.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/neovim/nvim/lua/config/lsp/clangd.lua b/modules/neovim/nvim/lua/config/lsp/clangd.lua new file mode 100644 index 0000000..14554a4 --- /dev/null +++ b/modules/neovim/nvim/lua/config/lsp/clangd.lua @@ -0,0 +1,21 @@ +return { + cmd = { "clangd" }, + filetypes = { "c", "cpp", "cuda" }, + root_markers = { + "meson.build", + ".clang-format", + ".clang-tidy", + "compile_commands.json", + "compile_flags.txt", + "configure.ac" + }, + single_file_support = true, + capabilities = { + textDocument = { + completion = { + editsNearCursor = true, + }, + }, + offsetEncoding = { "utf-8", "utf-16" }, + }, +} |