please for the love of god. clangd stop adding random headers

This commit is contained in:
2026-04-27 16:35:49 +02:00
parent d46390e44f
commit e90a89495f
+3 -1
View File
@@ -287,14 +287,16 @@
filetypes = { "c","cpp","objc","objcpp" }, filetypes = { "c","cpp","objc","objcpp" },
on_attach = on_attach , on_attach = on_attach ,
init_options = { init_options = {
clangdFileStatus = true, clangdFileStatus = true,
usePlaceholders = true, usePlaceholders = true,
completeUnimported = false, -- this adds a bunch of #include even thought they are #included in another header file completeUnimported = false, -- this adds a bunch of #include even thought they are #included in another header file
headerInsertion = false, headerInsertion = false,
headerInsertionDecorators = false, headerInsertionDecorators = false,
addDependencyHeaders = false,
semanticHighlighting = true} semanticHighlighting = true}
}) })
vim.lsp.config("nixd", { vim.lsp.config("nixd", {
cmd = { "nixd" }, cmd = { "nixd" },
filetyypes = { "nix" }, filetyypes = { "nix" },
on_attach = on_attach, on_attach = on_attach,