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
end, end,
signs = { signs = {
add = { text = "" }, add = { text = "+" },
change = { text = "" }, change = { text = "" },
delete = { text = "_" }, delete = { text = "_" },
topdelete = { text = "" }, topdelete = { text = "" },
changedelete = { text = "~" }, changedelete = { text = "~" },
untracked = { text = "" }, untracked = { text = "" },
-- add = { text = "+" },
-- change = { text = "│" },
-- delete = { text = "_" },
-- topdelete = { text = "‾" },
-- changedelete = { text = "~" },
-- untracked = { text = "┆" },
}, },
signs_staged = { signs_staged = {
add = { text = "" }, add = { text = "+" },
change = { text = "" }, change = { text = "" },
delete = { text = "_" }, delete = { text = "_" },
topdelete = { text = "" }, topdelete = { text = "" },
@@ -41,19 +35,21 @@ return {
untracked = { text = "" }, untracked = { text = "" },
}, },
signs_staged_enable = true, signs_staged_enable = true,
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs` signcolumn = true,
numhl = false, -- Toggle with `:Gitsigns toggle_numhl` numhl = true,
linehl = false, -- Toggle with `:Gitsigns toggle_linehl` linehl = false,
word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff` word_diff = true,
show_deleted = false, -- turning this off for now as it seems to be slowing down neovim on MBP
watch_gitdir = { watch_gitdir = {
interval = 1000, interval = 1000,
follow_files = true, follow_files = true,
}, },
attach_to_untracked = true, attach_to_untracked = false,
current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame` current_line_blame = true,
current_line_blame_opts = { current_line_blame_opts = {
use_focus = true,
virt_text = true, virt_text = true,
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align' virt_text_pos = "right_align",
delay = 200, delay = 200,
ignore_whitespace = false, ignore_whitespace = false,
}, },
@@ -61,9 +57,8 @@ return {
sign_priority = 6, sign_priority = 6,
update_debounce = 100, update_debounce = 100,
status_formatter = nil, -- Use default status_formatter = nil, -- Use default
max_file_length = 40000, -- Disable if file is longer than this (in lines) max_file_length = 40000,
preview_config = { preview_config = {
-- Options passed to nvim_open_win
border = "single", border = "single",
style = "minimal", style = "minimal",
relative = "cursor", relative = "cursor",