From e90a89495fb1a285f3700be6a6110ac5b4f590d1 Mon Sep 17 00:00:00 2001 From: Tomas Rivera Date: Mon, 27 Apr 2026 16:35:49 +0200 Subject: [PATCH] please for the love of god. clangd stop adding random headers --- modules/home-manager/neovim.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/neovim.nix b/modules/home-manager/neovim.nix index 0ec4977..f64a71d 100644 --- a/modules/home-manager/neovim.nix +++ b/modules/home-manager/neovim.nix @@ -287,14 +287,16 @@ filetypes = { "c","cpp","objc","objcpp" }, on_attach = on_attach , init_options = { + clangdFileStatus = true, usePlaceholders = true, completeUnimported = false, -- this adds a bunch of #include even thought they are #included in another header file headerInsertion = false, headerInsertionDecorators = false, + addDependencyHeaders = false, semanticHighlighting = true} }) - vim.lsp.config("nixd", { + vim.lsp.config("nixd", { cmd = { "nixd" }, filetyypes = { "nix" }, on_attach = on_attach,