1
0
Fork 0
numbers/.config/nvim/plugin/gitgutter.lua

34 lines
1.1 KiB
Lua
Raw Normal View History

2021-10-14 20:47:41 +00:00
require('gitsigns').setup {
numhl = true,
current_line_blame = true,
current_line_blame_opts = { virt_text_pos = 'right_align', delay= 1000 },
current_line_blame_formatter_opts = { relative_time = 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'},
},
sign_priority = 6,
update_debounce = 100,
status_formatter = nil, -- Use default
max_file_length = 40000,
preview_config = {
-- Options passed to nvim_open_win
border = 'single',
style = 'minimal',
relative = 'cursor',
row = 0,
col = 1
},
diff_opts = {
internal = true,
}, -- If vim.diff or luajit is present
yadm = {
enable = false
},
}
vim.g.fugitive_summary_format = "%an\t%s"