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) {