flake/nixos/nvim/keymaps.nix

52 lines
989 B
Nix

{
programs.nixvim = {
keymaps = [
{
mode = "n"; # Normal mode
key = "<Space>";
action = "<Nop>";
options.silent = true;
}
{
mode = "n";
key = "<Tab>";
action = ":bnext<CR>";
options = {
desc = "Next Buffer";
silent = true;
};
}
{
mode = "n";
key = "<S-Tab>";
action = ":bprevious<CR>";
options = {
desc = "Previous Buffer";
silent = true;
};
}
{
mode = "n";
key = "<leader>w";
action = ":w<CR>";
options = {
desc = "Save Buffer to File";
silent = true;
};
}
{
mode = "n";
key = "<leader>q";
action = ":qa<CR>";
options = {
desc = "Quit All";
silent = false;
};
}
];
globals = {
mapleader = " ";
maplocalleader = " ";
};
};
}