aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/gitsigns.lua
diff options
context:
space:
mode:
authoreric.marin <maarin.eric@gmail.com>2025-12-02 08:54:27 +0100
committerericmarin <maarin.eric@gmail.com>2026-03-20 10:24:05 +0100
commit2781082f1085757a0cfb929ba37de968726ec751 (patch)
tree96f908c8eccf11d19d77c37c333ed56aa4a437d5 /nvim/lua/plugins/gitsigns.lua
parentc2acdf9cca1de631c7d1c60d7cfba2a7ab816e59 (diff)
downloaddotfiles-2781082f1085757a0cfb929ba37de968726ec751.tar.gz
dotfiles-2781082f1085757a0cfb929ba37de968726ec751.zip
xd
Diffstat (limited to 'nvim/lua/plugins/gitsigns.lua')
-rw-r--r--nvim/lua/plugins/gitsigns.lua57
1 files changed, 57 insertions, 0 deletions
diff --git a/nvim/lua/plugins/gitsigns.lua b/nvim/lua/plugins/gitsigns.lua
new file mode 100644
index 0000000..2df9a2e
--- /dev/null
+++ b/nvim/lua/plugins/gitsigns.lua
@@ -0,0 +1,57 @@
+local opts = {
+ signs = {
+ add = { text = '┃' },
+ change = { text = '┃' },
+ delete = { text = '_' },
+ topdelete = { text = '‾' },
+ changedelete = { text = '~' },
+ untracked = { text = '┆' },
+ },
+ signs_staged = {
+ add = { text = '┃' },
+ change = { text = '┃' },
+ delete = { text = '_' },
+ topdelete = { text = '‾' },
+ changedelete = { text = '~' },
+ untracked = { text = '┆' },
+ },
+ signs_staged_enable = true,
+ signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
+ numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
+ linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
+ word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
+ watch_gitdir = {
+ follow_files = true
+ },
+ auto_attach = true,
+ attach_to_untracked = false,
+ 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,
+ virt_text_priority = 100,
+ use_focus = true,
+ },
+ current_line_blame_formatter = '<author>, <author_time:%R> - <summary>',
+ sign_priority = 6,
+ update_debounce = 100,
+ status_formatter = nil, -- Use default
+ max_file_length = 40000, -- Disable if file is longer than this (in lines)
+ preview_config = {
+ -- Options passed to nvim_open_win
+ style = 'minimal',
+ relative = 'cursor',
+ row = 0,
+ col = 1
+ },
+}
+
+return {
+ "lewis6991/gitsigns.nvim",
+ lazy = true,
+ event = "VeryLazy",
+ -- event = { "BufReadPost", "BufWritePost", "BufNewFile" },
+ opts = opts,
+}