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