78 lines
1.7 KiB
Nix
78 lines
1.7 KiB
Nix
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ ./langs/default.nix ];
|
|
plugins = {
|
|
lsp = {
|
|
enable = true;
|
|
inlayHints = true;
|
|
keymaps = {
|
|
silent = true;
|
|
lspBuf = {
|
|
gd = {
|
|
action = "definition";
|
|
desc = "Goto Definition";
|
|
};
|
|
gr = {
|
|
action = "references";
|
|
desc = "Goto References";
|
|
};
|
|
gD = {
|
|
action = "declaration";
|
|
desc = "Goto Declaration";
|
|
};
|
|
gI = {
|
|
action = "implementation";
|
|
desc = "Goto Implementation";
|
|
};
|
|
gT = {
|
|
action = "type_definition";
|
|
desc = "Type Definition";
|
|
};
|
|
K = {
|
|
action = "hover";
|
|
desc = "Hover";
|
|
};
|
|
"<leader>cw" = {
|
|
action = "workspace_symbol";
|
|
desc = "Workspace Symbol";
|
|
};
|
|
"<leader>cr" = {
|
|
action = "rename";
|
|
desc = "Rename";
|
|
};
|
|
};
|
|
diagnostic = {
|
|
"<leader>cd" = {
|
|
action = "open_float";
|
|
desc = "Line Diagnostics";
|
|
};
|
|
"[d" = {
|
|
action = "goto_next";
|
|
desc = "Next Diagnostic";
|
|
};
|
|
"]d" = {
|
|
action = "goto_prev";
|
|
desc = "Previous Diagnostic";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
lsp-lines.enable = true;
|
|
lsp-format.enable = true;
|
|
helm.enable = true;
|
|
};
|
|
|
|
extraPlugins = with pkgs.vimPlugins; [
|
|
roslyn-nvim
|
|
];
|
|
extraPackages = with pkgs; [
|
|
roslyn-ls
|
|
nixfmt-rfc-style
|
|
svelte-language-server
|
|
typescript-language-server
|
|
typescript
|
|
];
|
|
}
|