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:
Pratik Tripathy
2025-10-13 19:17:21 +05:30
parent 9223455162
commit a101e671ff
2 changed files with 34 additions and 37 deletions

View File

@@ -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()