manual config call to make sure opts are used
This commit is contained in:
@ -1,46 +1,46 @@
|
|||||||
return {
|
return {
|
||||||
{
|
"lewis6991/gitsigns.nvim",
|
||||||
"lewis6991/gitsigns.nvim",
|
event = "VeryLazy",
|
||||||
event = "VeryLazy",
|
opts = {
|
||||||
opts = {
|
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 = "┆" },
|
},
|
||||||
},
|
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 = false, -- Toggle with `:Gitsigns toggle_word_diff`
|
watch_gitdir = {
|
||||||
watch_gitdir = {
|
interval = 1000,
|
||||||
interval = 1000,
|
follow_files = true,
|
||||||
follow_files = true,
|
},
|
||||||
},
|
attach_to_untracked = true,
|
||||||
attach_to_untracked = true,
|
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
|
||||||
current_line_blame = false, -- 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'
|
delay = 1000,
|
||||||
delay = 1000,
|
ignore_whitespace = false,
|
||||||
ignore_whitespace = false,
|
},
|
||||||
},
|
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
|
||||||
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
|
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, -- Disable if file is longer than this (in lines)
|
preview_config = {
|
||||||
preview_config = {
|
-- Options passed to nvim_open_win
|
||||||
-- Options passed to nvim_open_win
|
border = "single",
|
||||||
border = "single",
|
style = "minimal",
|
||||||
style = "minimal",
|
relative = "cursor",
|
||||||
relative = "cursor",
|
row = 0,
|
||||||
row = 0,
|
col = 1,
|
||||||
col = 1,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
config = function (_, opts)
|
||||||
|
require('gitsigns').setup(opts)
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user