fix: correctly map scrolling and revert neogit keymaps

This commit is contained in:
Youwen Wu 2024-09-18 01:21:02 -07:00
parent b7ec14467a
commit 6f76853957
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -52,6 +52,24 @@
noremap = true; noremap = true;
}; };
} }
{
mode = "n";
key = "<C-f>";
action = "<C-f>zz";
options = {
silent = true;
noremap = true;
};
}
{
mode = "n";
key = "<C-b>";
action = "<C-b>zz";
options = {
silent = true;
noremap = true;
};
}
{ {
mode = "n"; mode = "n";
action = ":CellularAutomaton make_it_rain<CR>"; action = ":CellularAutomaton make_it_rain<CR>";
@ -336,30 +354,21 @@
}; };
} }
{ {
action = ":Neogit kind=floating<CR>"; action = ":Neogit<CR>";
key = "<Leader>gg"; key = "<Leader>gg";
options = { options = {
silent = true; silent = true;
noremap = true; noremap = true;
desc = "Open Neogit in floating window"; desc = "Open Neogit";
}; };
} }
{ {
action = ":Neogit<CR>"; action = ":Neogit kind=floating commit<CR>";
key = "<Leader>gG";
options = {
silent = true;
noremap = true;
desc = "Open Neogit in standalone tab";
};
}
{
action = ":Neogit commit<CR>";
key = "<Leader>gc"; key = "<Leader>gc";
options = { options = {
silent = true; silent = true;
noremap = true; noremap = true;
desc = "Open commit menu"; desc = "Quickly open Neogit commit menu";
}; };
} }
{ {