nvim gitsigns: 調整習慣的設定

This commit is contained in:
Yuan Chiu 2025-05-01 11:00:51 +08:00
parent 2a76c55268
commit 1507861a34

View File

@ -20,13 +20,13 @@ return {
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs` signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
numhl = false, -- Toggle with `:Gitsigns toggle_numhl` numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
linehl = false, -- Toggle with `:Gitsigns toggle_linehl` linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff` word_diff = true, -- Toggle with `:Gitsigns toggle_word_diff`
watch_gitdir = { watch_gitdir = {
follow_files = true follow_files = true
}, },
auto_attach = true, auto_attach = true,
attach_to_untracked = false, attach_to_untracked = false,
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame` current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame`
current_line_blame_opts = { current_line_blame_opts = {
virt_text = true, virt_text = true,
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align' virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
@ -35,7 +35,7 @@ return {
virt_text_priority = 100, virt_text_priority = 100,
use_focus = true, use_focus = true,
}, },
current_line_blame_formatter = '<author>, <author_time:%R> - <summary>', current_line_blame_formatter = ' <author>, <author_time:%R> - <summary>',
sign_priority = 6, sign_priority = 6,
update_debounce = 100, update_debounce = 100,
status_formatter = nil, -- Use default status_formatter = nil, -- Use default