2024-12-13 14:28:39 +03:00
|
|
|
require('gitsigns').setup {
|
2024-12-12 13:07:56 +03:00
|
|
|
signs = {
|
2024-12-13 14:28:39 +03:00
|
|
|
add = { text = '┃' },
|
|
|
|
change = { text = '┃' },
|
|
|
|
delete = { text = '' },
|
|
|
|
topdelete = { text = '' },
|
|
|
|
changedelete = { text = '┃' },
|
|
|
|
untracked = { text = ' ' },
|
2024-12-12 13:07:56 +03:00
|
|
|
},
|
|
|
|
signs_staged = {
|
2024-12-13 14:28:39 +03:00
|
|
|
add = { text = '┃' },
|
|
|
|
change = { text = '┃' },
|
|
|
|
delete = { text = '' },
|
|
|
|
topdelete = { text = '' },
|
|
|
|
changedelete = { text = '┃' },
|
|
|
|
untracked = { text = ' ' },
|
2024-12-12 13:07:56 +03:00
|
|
|
},
|
|
|
|
signcolumn = true,
|
|
|
|
numhl = false,
|
|
|
|
linehl = false,
|
|
|
|
word_diff = false,
|
2024-12-13 14:28:39 +03:00
|
|
|
watch_gitdir = {
|
|
|
|
interval = 1000,
|
|
|
|
follow_files = true,
|
|
|
|
},
|
|
|
|
attach_to_untracked = true,
|
|
|
|
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
|
|
|
|
current_line_blame_opts = {
|
2024-12-12 13:07:56 +03:00
|
|
|
virt_text = true,
|
|
|
|
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align'
|
|
|
|
delay = 1000,
|
|
|
|
ignore_whitespace = false,
|
|
|
|
},
|
|
|
|
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
|
|
|
|
sign_priority = 6,
|
|
|
|
status_formatter = nil, -- Use default
|
|
|
|
update_debounce = 200,
|
|
|
|
max_file_length = 40000,
|
|
|
|
preview_config = {
|
2024-12-13 14:28:39 +03:00
|
|
|
-- Options passed to nvim_open_win
|
2024-12-12 13:07:56 +03:00
|
|
|
border = "rounded",
|
|
|
|
style = "minimal",
|
|
|
|
relative = "cursor",
|
|
|
|
row = 0,
|
2024-12-13 14:28:39 +03:00
|
|
|
vcol = 1,
|
2024-12-12 13:07:56 +03:00
|
|
|
},
|
|
|
|
yadm = { enable = false },
|
2024-12-13 14:28:39 +03:00
|
|
|
}
|