25 lines
756 B
Lua
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,
|
|
}
|