nvim: after/plugin/gitsigns: Update configuration
current_line_blame_formatter_opts is deprecated. Update the signs configuration.
This commit is contained in:
parent
2ab2c2255b
commit
148e808cee
1 changed files with 5 additions and 13 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue