mirror of
https://github.com/youwen5/neovim-flake.git
synced 2024-11-24 10:53:51 -08:00
squash! feat: use floating neogit style
This commit is contained in:
parent
cd670638d1
commit
82a9a5af6b
2 changed files with 23 additions and 16 deletions
|
@ -23,16 +23,6 @@
|
|||
desc = "Zen mode";
|
||||
};
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
action = "<C-d>";
|
||||
key = "<C-d>zz";
|
||||
options = {
|
||||
silent = true;
|
||||
noremap = true;
|
||||
desc = "Scroll down and center";
|
||||
};
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
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";
|
||||
};
|
||||
}
|
||||
# center the screen when scrolling
|
||||
{
|
||||
mode = "n";
|
||||
action = "<C-u>";
|
||||
key = "<C-u>zz";
|
||||
key = "<C-u>";
|
||||
action = "<C-u>zz";
|
||||
options = {
|
||||
silent = true;
|
||||
noremap = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<C-d>";
|
||||
action = "<C-d>zz";
|
||||
options = {
|
||||
silent = true;
|
||||
noremap = true;
|
||||
desc = "Scroll up and center";
|
||||
};
|
||||
}
|
||||
{
|
||||
|
@ -337,12 +336,21 @@
|
|||
};
|
||||
}
|
||||
{
|
||||
action = ":Neogit<CR>";
|
||||
action = ":Neogit kind=floating<CR>";
|
||||
key = "<Leader>gg";
|
||||
options = {
|
||||
silent = 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";
|
||||
};
|
||||
}
|
||||
{
|
||||
|
|
|
@ -82,7 +82,6 @@
|
|||
enable = true;
|
||||
settings = {
|
||||
graph_style = "unicode";
|
||||
popup.kind = "floating";
|
||||
integrations = {
|
||||
diffview = true;
|
||||
telescope = true;
|
||||
|
|
Loading…
Reference in a new issue