mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
70 lines
1.7 KiB
Lua
70 lines
1.7 KiB
Lua
local status_ok, gitsigns = pcall(require, "gitsigns")
|
|
if not status_ok then
|
|
return
|
|
end
|
|
local icons = require("user.icons")
|
|
|
|
gitsigns.setup({
|
|
signs = {
|
|
add = {
|
|
hl = "GitSignsAdd",
|
|
text = icons.ui.BoldLineLeft,
|
|
numhl = "GitSignsAddNr",
|
|
linehl = "GitSignsAddLn",
|
|
},
|
|
change = {
|
|
hl = "GitSignsChange",
|
|
text = icons.ui.BoldLineLeft,
|
|
numhl = "GitSignsChangeNr",
|
|
linehl = "GitSignsChangeLn",
|
|
},
|
|
delete = {
|
|
hl = "GitSignsDelete",
|
|
text = icons.ui.Triangle,
|
|
numhl = "GitSignsDeleteNr",
|
|
linehl = "GitSignsDeleteLn",
|
|
},
|
|
topdelete = {
|
|
hl = "GitSignsDelete",
|
|
text = icons.ui.Triangle,
|
|
numhl = "GitSignsDeleteNr",
|
|
linehl = "GitSignsDeleteLn",
|
|
},
|
|
changedelete = {
|
|
hl = "GitSignsChange",
|
|
text = icons.ui.BoldLineLeft,
|
|
numhl = "GitSignsChangeNr",
|
|
linehl = "GitSignsChangeLn",
|
|
},
|
|
},
|
|
signcolumn = true,
|
|
numhl = false,
|
|
linehl = false,
|
|
word_diff = false,
|
|
watch_gitdir = {
|
|
interval = 1000,
|
|
follow_files = true,
|
|
},
|
|
attach_to_untracked = true,
|
|
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
|
|
current_line_blame_opts = {
|
|
virt_text = true,
|
|
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align'
|
|
delay = 1000,
|
|
ignore_whitespace = false,
|
|
},
|
|
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
|
|
sign_priority = 6,
|
|
status_formatter = nil, -- Use default
|
|
update_debounce = 200,
|
|
max_file_length = 40000,
|
|
preview_config = {
|
|
-- Options passed to nvim_open_win
|
|
border = "rounded",
|
|
style = "minimal",
|
|
relative = "cursor",
|
|
row = 0,
|
|
col = 1,
|
|
},
|
|
yadm = { enable = false },
|
|
})
|