Update lockfile and migrate to new lsp module
Using `lsp` instead of `plugins.lsp` now
This commit is contained in:
parent
2613c4d8dd
commit
1efbe3381b
2 changed files with 47 additions and 40 deletions
|
|
@ -1,10 +1,25 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
plugins.lsp = {
|
||||
enable = true;
|
||||
inlayHints = true;
|
||||
lsp = {
|
||||
inlayHints.enable = true;
|
||||
|
||||
keymaps.extra = [
|
||||
keymaps = [
|
||||
{
|
||||
lspBufAction = "hover";
|
||||
key = "K";
|
||||
}
|
||||
{
|
||||
lspBufAction = "references";
|
||||
key = "gD";
|
||||
}
|
||||
{
|
||||
lspBufAction = "definition";
|
||||
key = "gd";
|
||||
}
|
||||
{
|
||||
lspBufAction = "implementation";
|
||||
key = "gi";
|
||||
}
|
||||
{
|
||||
action = "<cmd>LspStop<CR>";
|
||||
key = "<leader>lx";
|
||||
|
|
@ -31,13 +46,6 @@
|
|||
}
|
||||
];
|
||||
|
||||
keymaps.lspBuf = {
|
||||
"K" = "hover";
|
||||
"gD" = "references";
|
||||
"gd" = "definition";
|
||||
"gi" = "implementation";
|
||||
};
|
||||
|
||||
servers = {
|
||||
# python
|
||||
ruff.enable = true;
|
||||
|
|
@ -64,11 +72,9 @@
|
|||
# rust
|
||||
rust_analyzer = {
|
||||
enable = true;
|
||||
settings.check.command = "clippy";
|
||||
config.check.command = "clippy";
|
||||
# Rely on tooling from dev environment
|
||||
package = null;
|
||||
installCargo = false;
|
||||
installRustc = false;
|
||||
};
|
||||
|
||||
# golang
|
||||
|
|
@ -77,11 +83,12 @@
|
|||
# nix
|
||||
nixd = {
|
||||
enable = true;
|
||||
settings.formatting.command = [ "${pkgs.nixfmt-rfc-style}/bin/nixfmt" ];
|
||||
config.formatting.command = [ "${pkgs.nixfmt-rfc-style}/bin/nixfmt" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
plugins.lspconfig.enable = true;
|
||||
plugins.lsp-format.enable = true;
|
||||
plugins.lsp-lines.enable = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue