mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
refactor(neovim): Git operation enhacements
- Use gitsigns to do file diff against index - gitsigns: Use `[h` `]h` to traverse hunks instead of `[g` `]g` - gitsigns: `<leader>gQ`: Project hunks to quickfix list - gitsigns: `<leader>gs` acts as toggle to stage & unstage - diffview: `<leader>gD` Diff all files against index - Lazygit: Consistent keymap descriptions
This commit is contained in:
@@ -188,14 +188,21 @@ return {
|
||||
function()
|
||||
Snacks.lazygit.open(opts)
|
||||
end,
|
||||
desc = "Git: Show LazyGit",
|
||||
desc = "LazyGit: Show LazyGit",
|
||||
},
|
||||
{
|
||||
"<leader>gl",
|
||||
function()
|
||||
Snacks.lazygit.log(opts)
|
||||
end,
|
||||
desc = "LazyGit: List Git Log",
|
||||
desc = "LazyGit: Git Log Graph",
|
||||
},
|
||||
{
|
||||
"<leader>gf",
|
||||
function()
|
||||
Snacks.lazygit.log_file(opts)
|
||||
end,
|
||||
desc = "LazyGit: Show File Log",
|
||||
},
|
||||
{
|
||||
"<leader>gL",
|
||||
@@ -204,13 +211,6 @@ return {
|
||||
end,
|
||||
desc = "Git: Line Log",
|
||||
},
|
||||
{
|
||||
"<leader>gf",
|
||||
function()
|
||||
Snacks.lazygit.log_file(opts)
|
||||
end,
|
||||
desc = "Git: Show File Log",
|
||||
},
|
||||
{
|
||||
"<leader>gO",
|
||||
function()
|
||||
|
||||
Reference in New Issue
Block a user