From 92247b11d94aaa1872dfb786921ada15d00250f4 Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Fri, 1 Nov 2024 14:25:24 -0400 Subject: [PATCH] refactored to lazy standard --- .config/nvim/lua/plugins/gitsigns.lua | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.config/nvim/lua/plugins/gitsigns.lua b/.config/nvim/lua/plugins/gitsigns.lua index 9981856..68b2ee9 100644 --- a/.config/nvim/lua/plugins/gitsigns.lua +++ b/.config/nvim/lua/plugins/gitsigns.lua @@ -5,7 +5,7 @@ return { { "purarue/gitsigns-yadm.nvim", opts = { - shell_timeout_ms = 1000, + shell_timeout_ms = 2000, }, }, }, @@ -19,13 +19,28 @@ return { end end, signs = { - add = { text = "+" }, - change = { text = "│" }, + add = { 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 = "_" }, topdelete = { text = "‾" }, changedelete = { text = "~" }, untracked = { text = "┆" }, }, + signs_staged_enable = true, signcolumn = true, -- Toggle with `:Gitsigns toggle_signs` numhl = false, -- Toggle with `:Gitsigns toggle_numhl` linehl = false, -- Toggle with `:Gitsigns toggle_linehl` @@ -62,8 +77,8 @@ return { vim.keymap.set(mode, l, r, { buffer = bufnr, desc = desc }) end - map("n", "]h", gs.next_hunk, "Next Hunk") - map("n", "[h", gs.prev_hunk, "Prev Hunk") + map("n", "]h", gs.next_hunk, "Next hunk") + map("n", "[h", gs.prev_hunk, "Prev hunk") map("n", "hs", gs.stage_hunk, "Stage Hunk") map("n", "hr", gs.reset_hunk, "Reset Hunk")