Browse Source

fix(gitsigns): rounded border (#2142)

Jieru Mei 3 years ago
parent
commit
046f0aa94d
1 changed files with 26 additions and 1 deletions
  1. 26 1
      lua/lvim/core/gitsigns.lua

+ 26 - 1
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