merged lsp into app.nix

This commit is contained in:
Julia Lange 2026-02-18 12:52:16 -08:00
parent 4d72b7a141
commit a86ffded19
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
2 changed files with 12 additions and 53 deletions

View file

@ -102,6 +102,7 @@
};
};
programs.nixvim.plugins.nvim-lspconfig.enable = true;
programs.nixvim.plugins = with config.neovim.languages; {
nix.enable = nix.enable;
rustaceanvim.enable = rust.enable;
@ -116,6 +117,17 @@
rust_analyzer.enable = rust.enable;
tsserver.enable = typescript.enable;
};
keymaps = [
{ key = "gd"; lspBufAction = "definition"; }
{ key = "gD"; lspBufAction = "declaration"; }
{ key = "gi"; lspBufAction = "implementation"; }
{ key = "gt"; lspBufAction = "type_definition"; }
{ key = "K"; lspBufAction = "hover"; }
] + lib.options config.neovim.plugins.telescope.enable {
key = "gr";
action = lib.nixvim.mkRaw
"require('telescope.builtin').lsp_references";
};
};
};
}