chore: added refresh gitsigns keybind
This commit is contained in:
@@ -5,7 +5,7 @@ return {
|
|||||||
|
|
||||||
config = function()
|
config = function()
|
||||||
require("gitsigns").setup {
|
require("gitsigns").setup {
|
||||||
signs = {
|
signs = {
|
||||||
-- add = { text = "│" },
|
-- add = { text = "│" },
|
||||||
-- change = { text = "│" },
|
-- change = { text = "│" },
|
||||||
delete = { text = "_", show_count = true },
|
delete = { text = "_", show_count = true },
|
||||||
@@ -13,8 +13,12 @@ return {
|
|||||||
-- changedelete = { text = "~" },
|
-- changedelete = { text = "~" },
|
||||||
-- untracked = { text = "┆" },
|
-- untracked = { text = "┆" },
|
||||||
},
|
},
|
||||||
numhl = true, -- Toggle with `:Gitsigns toggle_numhl`
|
numhl = true, -- Toggle with `:Gitsigns toggle_numhl`
|
||||||
linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
|
linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<Leader>xs', function()
|
||||||
|
require("gitsigns").refresh();
|
||||||
|
end, { desc = "Gitsigns refresh" })
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user