diff --git a/lazy-lock.json b/lazy-lock.json index 72a5b5b..e46a0ba 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -13,13 +13,13 @@ "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, "dressing.nvim": { "branch": "master", "commit": "6741f1062d3dc6e4755367a7e9b347b553623f04" }, "flutter-tools.nvim": { "branch": "main", "commit": "5aa227fa083fd740184b55b5220dfabc24a25cc7" }, + "gitsigns.nvim": { "branch": "main", "commit": "6b1a14eabcebbcca1b9e9163a26b2f8371364cb7" }, "harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" }, "lazy.nvim": { "branch": "main", "commit": "a9d7ade203b3f3ee3058c082c62afdf8e4bcb416" }, "lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" }, "lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "37a336b653f8594df75c827ed589f1c91d91ff6c" }, "mason.nvim": { "branch": "main", "commit": "0950b15060067f752fde13a779a994f59516ce3d" }, - "mini.diff": { "branch": "main", "commit": "d052bf31cc01bb1dde0afd129d8dcdd9f36b9d35" }, "mini.indentscope": { "branch": "main", "commit": "f0d7faa064c892b96997810afcddfadc3f2a15b3" }, "mini.surround": { "branch": "main", "commit": "3cb5b509ad34f2402df4b977be607a614c8c7524" }, "neogen": { "branch": "main", "commit": "6de0add4805165317ab7d3d36b5cef48b1b865f3" }, diff --git a/lua/409/plugins/git.lua b/lua/409/plugins/git.lua index 29f4e13..a002eb4 100644 --- a/lua/409/plugins/git.lua +++ b/lua/409/plugins/git.lua @@ -1,22 +1,59 @@ return { { "tpope/vim-fugitive", - keys = { - { - "gs", - ":tab Git", - desc = "Fugitive" - }, - }, - lazy = true, + keys = { + { + "gs", + ":tab Git", + desc = "Fugitive", + }, + }, + lazy = true, }, { - "echasnovski/mini.diff", - version = false, + "lewis6991/gitsigns.nvim", + lazy = false, + keys = { + { + "hp", + ":Gitsigns preview_hunk", + desc = "Preview hunk", + }, + { + "hs", + ":Gitsigns stage_hunk", + desc = "Stage hunk", + }, + { + "hu", + ":Gitsigns undo_stage_hunk", + desc = "Undo stage hunk", + }, + { + "gb", + ":Gitsigns toggle_current_line_blame", + desc = "Toggle current line blame", + }, + { + "[c", + ":Gitsigns next_hunk", + desc = "Jump to next hunk", + }, + { + "]c", + ":Gitsigns prev_hunk", + desc = "Jump to previous hunk", + }, + }, + opts = { + current_line_blame_opts = { + delay = 1000, + }, + }, + config = true, + }, + { + "sindrets/diffview.nvim", config = true, }, - { - "sindrets/diffview.nvim", - config = true, - }, }