improve gitsigns settings

change add symbol back to +
enabled highlighting the line number of changed lines
enabled highlighting changed WORDS
fixed line blame to be less intrusive (aligned to right of window now)
This commit is contained in:
2024-11-20 10:27:12 -05:00
parent 7b5f676f32
commit ced6df31bb
+12 -17
View File
@@ -19,21 +19,15 @@ return {
end
end,
signs = {
add = { text = "" },
add = { text = "+" },
change = { text = "" },
delete = { text = "_" },
topdelete = { text = "" },
changedelete = { text = "~" },
untracked = { text = "" },
-- add = { text = "+" },
-- change = { text = "│" },
-- delete = { text = "_" },
-- topdelete = { text = "‾" },
-- changedelete = { text = "~" },
-- untracked = { text = "┆" },
},
signs_staged = {
add = { text = "" },
add = { text = "+" },
change = { text = "" },
delete = { text = "_" },
topdelete = { text = "" },
@@ -41,19 +35,21 @@ return {
untracked = { text = "" },
},
signs_staged_enable = true,
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
signcolumn = true,
numhl = true,
linehl = false,
word_diff = true,
show_deleted = false, -- turning this off for now as it seems to be slowing down neovim on MBP
watch_gitdir = {
interval = 1000,
follow_files = true,
},
attach_to_untracked = true,
current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame`
attach_to_untracked = false,
current_line_blame = true,
current_line_blame_opts = {
use_focus = true,
virt_text = true,
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align'
virt_text_pos = "right_align",
delay = 200,
ignore_whitespace = false,
},
@@ -61,9 +57,8 @@ return {
sign_priority = 6,
update_debounce = 100,
status_formatter = nil, -- Use default
max_file_length = 40000, -- Disable if file is longer than this (in lines)
max_file_length = 40000,
preview_config = {
-- Options passed to nvim_open_win
border = "single",
style = "minimal",
relative = "cursor",