From 148e808cee51e8f282db9df7dd51bef98e04aa30 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sat, 25 Feb 2023 17:13:29 +0530 Subject: [PATCH] nvim: after/plugin/gitsigns: Update configuration current_line_blame_formatter_opts is deprecated. Update the signs configuration. --- nvim/.config/nvim/after/plugin/gitsigns.lua | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/nvim/.config/nvim/after/plugin/gitsigns.lua b/nvim/.config/nvim/after/plugin/gitsigns.lua index 4e96b13..49fcdf6 100644 --- a/nvim/.config/nvim/after/plugin/gitsigns.lua +++ b/nvim/.config/nvim/after/plugin/gitsigns.lua @@ -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