diff --git a/lua/ward/plugins/gitsigns.lua b/lua/ward/plugins/gitsigns.lua index fbaa5d2..d777cb7 100644 --- a/lua/ward/plugins/gitsigns.lua +++ b/lua/ward/plugins/gitsigns.lua @@ -5,7 +5,7 @@ return { config = function() require("gitsigns").setup { - signs = { + signs = { -- add = { text = "│" }, -- change = { text = "│" }, delete = { text = "_", show_count = true }, @@ -13,8 +13,12 @@ return { -- changedelete = { text = "~" }, -- untracked = { text = "┆" }, }, - numhl = true, -- Toggle with `:Gitsigns toggle_numhl` - linehl = false, -- Toggle with `:Gitsigns toggle_linehl` + numhl = true, -- Toggle with `:Gitsigns toggle_numhl` + linehl = false, -- Toggle with `:Gitsigns toggle_linehl` } + + vim.keymap.set('n', 'xs', function() + require("gitsigns").refresh(); + end, { desc = "Gitsigns refresh" }) end, }