merged lsp into app.nix
This commit is contained in:
parent
4d72b7a141
commit
a86ffded19
2 changed files with 12 additions and 53 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue