From 9a43cec4ffc87852bd5f4d793819811a930dfdbf Mon Sep 17 00:00:00 2001 From: Vegard Bieker Matthey Date: Sun, 14 Jun 2026 00:48:22 +0200 Subject: [PATCH] neovim: add clangd lsp --- home/programs/neovim.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/home/programs/neovim.nix b/home/programs/neovim.nix index 9e2f3b2..44e35d5 100644 --- a/home/programs/neovim.nix +++ b/home/programs/neovim.nix @@ -31,6 +31,15 @@ formatterMode = "typstyle"; }; }; + clangd = { + enable = true; + settings = { + filetypes = [ + "c" + "h" + ]; + }; + }; }; }; # There has been some drama, the repo was archived and stuff. @@ -62,6 +71,14 @@ action = "Telescope find_files"; key = "ff"; } + { + action = "lua vim.lsp.buf.definition()"; + key = "gd"; + } + { + action = "lua vim.lsp.buf.declaration()"; + key = "gD"; + } ]; } // lib.optionalAttrs (!stable) {