nvim: after/plugin/gitsigns: Update configuration

current_line_blame_formatter_opts is deprecated. Update the signs
configuration.
This commit is contained in:
Sanchayan Maity 2023-02-25 17:13:29 +05:30
parent 2ab2c2255b
commit 148e808cee
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -9,18 +9,10 @@ require('gitsigns').setup {
word_diff = false, word_diff = false,
attach_to_untracked = false, attach_to_untracked = false,
current_line_blame = false, current_line_blame = false,
current_line_blame_opts = {
virt_text = true,
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
delay = 1000,
},
watch_gitdir = { watch_gitdir = {
interval = 1000, interval = 1000,
follow_files = true follow_files = true
}, },
current_line_blame_formatter_opts = {
relative_time = false
},
preview_config = { preview_config = {
-- Options passed to nvim_open_win -- Options passed to nvim_open_win
border = 'single', border = 'single',
@ -33,11 +25,11 @@ require('gitsigns').setup {
enable = false enable = false
}, },
signs = { signs = {
add = { hl = 'GitSignsAdd' , text = '', numhl='GitSignsAddNr' , linehl='GitSignsAddLn' }, add = { text = '+' },
change = { hl = 'GitSignsChange', text = '', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn' }, change = { text = '' },
delete = { hl = 'GitSignsDelete', text = '_', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn' }, delete = { text = '-' },
topdelete = { hl = 'GitSignsDelete', text = '', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn' }, topdelete = { text = '' },
changedelete = { hl = 'GitSignsChange', text = '~', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn' }, changedelete = { text = '~' },
}, },
on_attach = function(bufnr) on_attach = function(bufnr)
local gs = package.loaded.gitsigns local gs = package.loaded.gitsigns