feat: add rust error explanation binding
This commit is contained in:
parent
3c9a9d42cf
commit
a641d4fafe
4 changed files with 135 additions and 115 deletions
8
home-manager/stvnliu/nixvim/custom/binds.nix
Normal file
8
home-manager/stvnliu/nixvim/custom/binds.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>ree";
|
||||||
|
action = "<CMD>RustLsp explainError<CR>";
|
||||||
|
options.desc = "Explain this Rust error (custom)";
|
||||||
|
}
|
||||||
|
]
|
|
@ -26,7 +26,8 @@
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
globals.mapleader = " ";
|
globals.mapleader = " ";
|
||||||
colorschemes.gruvbox = {enable = true;};
|
colorschemes.gruvbox = {enable = true;};
|
||||||
keymaps = [
|
keymaps =
|
||||||
|
[
|
||||||
# Global
|
# Global
|
||||||
# Default mode is "" which means normal-visual-op
|
# Default mode is "" which means normal-visual-op
|
||||||
{
|
{
|
||||||
|
@ -146,5 +147,6 @@
|
||||||
action = "<CMD>RustStartStandaloneServerForBuffer<CR>";
|
action = "<CMD>RustStartStandaloneServerForBuffer<CR>";
|
||||||
options.desc = "Start standalone rust-analyzer";
|
options.desc = "Start standalone rust-analyzer";
|
||||||
}
|
}
|
||||||
];
|
]
|
||||||
|
++ (import ./custom/binds.nix);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
../common/variables.nix
|
../common/variables.nix
|
||||||
./greetd.nix
|
./greetd.nix
|
||||||
|
#./ly.nix
|
||||||
./bootloader.nix
|
./bootloader.nix
|
||||||
./nvidia.nix
|
./nvidia.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
|
|
9
nixos/ly.nix
Normal file
9
nixos/ly.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.displayManager.ly = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue