refactored to lazy standard

This commit is contained in:
2024-11-01 14:25:24 -04:00
parent 0ab7247066
commit 92247b11d9
+20 -5
View File
@@ -5,7 +5,7 @@ return {
{ {
"purarue/gitsigns-yadm.nvim", "purarue/gitsigns-yadm.nvim",
opts = { opts = {
shell_timeout_ms = 1000, shell_timeout_ms = 2000,
}, },
}, },
}, },
@@ -19,13 +19,28 @@ return {
end end
end, end,
signs = { signs = {
add = { text = "+" }, add = { text = "" },
change = { text = "" }, change = { text = "" },
delete = { text = "_" },
topdelete = { text = "" },
changedelete = { text = "~" },
untracked = { text = "" },
-- add = { text = "+" },
-- change = { text = "│" },
-- delete = { text = "_" },
-- topdelete = { text = "‾" },
-- changedelete = { text = "~" },
-- untracked = { text = "┆" },
},
signs_staged = {
add = { text = "" },
change = { text = "" },
delete = { text = "_" }, delete = { text = "_" },
topdelete = { text = "" }, topdelete = { text = "" },
changedelete = { text = "~" }, changedelete = { text = "~" },
untracked = { text = "" }, untracked = { text = "" },
}, },
signs_staged_enable = true,
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs` signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
numhl = false, -- Toggle with `:Gitsigns toggle_numhl` numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
linehl = false, -- Toggle with `:Gitsigns toggle_linehl` linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
@@ -62,8 +77,8 @@ return {
vim.keymap.set(mode, l, r, { buffer = bufnr, desc = desc }) vim.keymap.set(mode, l, r, { buffer = bufnr, desc = desc })
end end
map("n", "]h", gs.next_hunk, "Next Hunk") map("n", "]h", gs.next_hunk, "Next hunk")
map("n", "[h", gs.prev_hunk, "Prev Hunk") map("n", "[h", gs.prev_hunk, "Prev hunk")
map("n", "<leader>hs", gs.stage_hunk, "Stage Hunk") map("n", "<leader>hs", gs.stage_hunk, "Stage Hunk")
map("n", "<leader>hr", gs.reset_hunk, "Reset Hunk") map("n", "<leader>hr", gs.reset_hunk, "Reset Hunk")