feat: add rust error explanation binding

This commit is contained in:
Zhongheng Liu 2024-11-02 11:17:38 +02:00
commit a641d4fafe
Signed by: steven
GPG key ID: DC8F48E7B4C40905
4 changed files with 135 additions and 115 deletions

View file

@ -0,0 +1,8 @@
[
{
mode = "n";
key = "<leader>ree";
action = "<CMD>RustLsp explainError<CR>";
options.desc = "Explain this Rust error (custom)";
}
]

View file

@ -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);
} }

View file

@ -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
View file

@ -0,0 +1,9 @@
{
pkgs,
config,
...
}: {
services.displayManager.ly = {
enable = true;
};
}