squash! feat: use floating neogit style

This commit is contained in:
Youwen Wu 2024-09-18 01:06:01 -07:00
parent cd670638d1
commit 82a9a5af6b
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 23 additions and 16 deletions

View file

@ -23,16 +23,6 @@
desc = "Zen mode"; desc = "Zen mode";
}; };
} }
{
mode = "n";
action = "<C-d>";
key = "<C-d>zz";
options = {
silent = true;
noremap = true;
desc = "Scroll down and center";
};
}
{ {
mode = "n"; mode = "n";
action = ":%%s/\\<<C-r><C-w>\\>/<C-r><C-w>/gI<Left><Left><Left>"; action = ":%%s/\\<<C-r><C-w>\\>/<C-r><C-w>/gI<Left><Left><Left>";
@ -43,14 +33,23 @@
desc = "Search and replace the word under the cursor globally and case-insensitively"; desc = "Search and replace the word under the cursor globally and case-insensitively";
}; };
} }
# center the screen when scrolling
{ {
mode = "n"; mode = "n";
action = "<C-u>"; key = "<C-u>";
key = "<C-u>zz"; action = "<C-u>zz";
options = {
silent = true;
noremap = true;
};
}
{
mode = "n";
key = "<C-d>";
action = "<C-d>zz";
options = { options = {
silent = true; silent = true;
noremap = true; noremap = true;
desc = "Scroll up and center";
}; };
} }
{ {
@ -337,12 +336,21 @@
}; };
} }
{ {
action = ":Neogit<CR>"; action = ":Neogit kind=floating<CR>";
key = "<Leader>gg"; key = "<Leader>gg";
options = { options = {
silent = true; silent = true;
noremap = true; noremap = true;
desc = "Open Neogit"; desc = "Open Neogit in floating window";
};
}
{
action = ":Neogit<CR>";
key = "<Leader>gG";
options = {
silent = true;
noremap = true;
desc = "Open Neogit in standalone tab";
}; };
} }
{ {

View file

@ -82,7 +82,6 @@
enable = true; enable = true;
settings = { settings = {
graph_style = "unicode"; graph_style = "unicode";
popup.kind = "floating";
integrations = { integrations = {
diffview = true; diffview = true;
telescope = true; telescope = true;