nix/home/config/nvim/module/plugin/Gitsigns.nix

46 lines
1.2 KiB
Nix
Raw Normal View History

{ ... }:
{
text = ''
require("gitsigns").setup {
signs = {
add = { text = "" },
change = { text = "" },
changedelete = { text = "~" },
delete = { text = "_" },
topdelete = { text = "" },
untracked = { text = "" },
},
linehl = false,
numhl = true,
signcolumn = false,
word_diff = false,
watch_gitdir = {
follow_files = true,
},
attach_to_untracked = true,
current_line_blame = false,
current_line_blame_opts = {
delay = 1000,
ignore_whitespace = false,
virt_text = true,
virt_text_pos = "eol",
},
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
max_file_length = 40000,
sign_priority = 6,
status_formatter = nil,
update_debounce = 100,
preview_config = {
border = "single",
col = 1,
relative = "cursor",
row = 0,
style = "minimal",
},
}
2024-04-06 03:03:58 +03:00
-- Set custom color.
vim.cmd("highlight gitsignscurrentlineblame guibg=#00000000 guifg=#aaaaaa")
'';
2024-04-06 03:03:58 +03:00
}