Files
nvim-config/lua/ward/plugins/gitsigns.lua
2025-08-17 22:38:35 +02:00

25 lines
756 B
Lua

--Note: this will show what part of a file was changed deleted or added in a git repo
return {
"lewis6991/gitsigns.nvim",
-- event = "BufReadPre",
config = function()
require("gitsigns").setup {
signs = {
-- add = { text = "│" },
-- change = { text = "│" },
delete = { text = "_", show_count = true },
-- topdelete = { text = "‾" },
-- changedelete = { text = "~" },
-- untracked = { text = "┆" },
},
numhl = true, -- Toggle with `:Gitsigns toggle_numhl`
linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
}
vim.keymap.set('n', '<Leader>xs', function()
require("gitsigns").refresh();
end, { desc = "Gitsigns refresh" })
end,
}