feat(gitsigns): cosmetics update gitsign config

This commit is contained in:
doryan 2024-12-13 15:28:39 +04:00
parent ec99f601a0
commit bb64365d25

View File

@ -1,49 +1,31 @@
require("gitsigns").setup({ require('gitsigns').setup {
signs = { signs = {
add = { add = { text = '' },
text = "", change = { text = '' },
}, delete = { text = '' },
change = { topdelete = { text = '' },
text = "", changedelete = { text = '' },
}, untracked = { text = ' ' },
delete = {
text = "",
},
topdelete = {
text = "",
},
changedelete = {
text = "",
},
}, },
signs_staged = { signs_staged = {
add = { add = { text = '' },
text = "", change = { text = '' },
}, delete = { text = '' },
change = { topdelete = { text = '' },
text = "", changedelete = { text = '' },
}, untracked = { text = ' ' },
delete = {
text = "",
},
topdelete = {
text = "",
},
changedelete = {
text = "",
},
}, },
signcolumn = true, signcolumn = true,
numhl = false, numhl = false,
linehl = false, linehl = false,
word_diff = false, word_diff = false,
watch_gitdir = { watch_gitdir = {
interval = 1000, interval = 1000,
follow_files = true, follow_files = true,
}, },
attach_to_untracked = true, attach_to_untracked = true,
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame` current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
current_line_blame_opts = { current_line_blame_opts = {
virt_text = true, virt_text = true,
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align' virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align'
delay = 1000, delay = 1000,
@ -55,13 +37,12 @@ require("gitsigns").setup({
update_debounce = 200, update_debounce = 200,
max_file_length = 40000, max_file_length = 40000,
preview_config = { preview_config = {
-- Options passed to nvim_open_win -- Options passed to nvim_open_win
border = "rounded", border = "rounded",
style = "minimal", style = "minimal",
relative = "cursor", relative = "cursor",
row = 0, row = 0,
col = 1, vcol = 1,
}, },
yadm = { enable = false }, yadm = { enable = false },
}) }