summaryrefslogtreecommitdiff
path: root/lua/lvim/core
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-01-05 20:25:02 +0100
committerkylo252 <[email protected]>2022-01-05 20:25:02 +0100
commite8e293bf00bc79f28e85de3c93ecdf5b338b9b61 (patch)
treec581de09ce08cc9fb1afa2c5d61ea1440d779d7b /lua/lvim/core
parente1b8eb01a2e2ca092f761b25777ba60d76609c30 (diff)
parentb10e18a213741dcd4ce1e7ba63accaf10719dbec (diff)
Merge branch 'rolling'
Diffstat (limited to 'lua/lvim/core')
-rw-r--r--lua/lvim/core/gitsigns.lua27
1 files changed, 26 insertions, 1 deletions
diff --git a/lua/lvim/core/gitsigns.lua b/lua/lvim/core/gitsigns.lua
index cc6387dc..c000cfda 100644
--- a/lua/lvim/core/gitsigns.lua
+++ b/lua/lvim/core/gitsigns.lua
@@ -44,7 +44,32 @@ M.config = function()
noremap = true,
buffer = true,
},
- watch_gitdir = { interval = 1000 },
+ signcolumn = true,
+ word_diff = false,
+ 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_opts = {
+ relative_time = false,
+ },
+ max_file_length = 40000,
+ preview_config = {
+ -- Options passed to nvim_open_win
+ border = "rounded",
+ style = "minimal",
+ relative = "cursor",
+ row = 0,
+ col = 1,
+ },
+ watch_gitdir = {
+ interval = 1000,
+ follow_files = true,
+ },
sign_priority = 6,
update_debounce = 200,
status_formatter = nil, -- Use default