From 43af656a9e1325e76c69e6f5e694214156c278f1 Mon Sep 17 00:00:00 2001 From: Marcelo Date: Sun, 30 Mar 2025 04:26:45 -0300 Subject: Replace nvim-lspconfig and blink completion with NVIM 0.11 native options. --- lsp/clangd.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lsp/clangd.lua (limited to 'lsp/clangd.lua') diff --git a/lsp/clangd.lua b/lsp/clangd.lua new file mode 100644 index 0000000..c2deb96 --- /dev/null +++ b/lsp/clangd.lua @@ -0,0 +1,30 @@ +return { + cmd = { + "clangd", + "--header-insertion=iwyu", + "--background-index", + "--clang-tidy", + "--log=verbose", + }, + filetypes = { "c", "cpp", "objc", "objcpp", "cuda", "proto" }, + root_markers = { + ".clangd", + ".clang-tidy", + ".clang-format", + "compile_commands.json", + "compile_flags.txt", + "configure.ac", + "Makefile", + "CMakeLists.txt", + ".git", + }, + single_file_support = true, + flags = { + debounce_text_changes = 20, + }, + capabilities = { + textDocument = { + completion = { editsNearCursor = true } + }, + } +} -- cgit v1.2.3