summaryrefslogtreecommitdiffstats
path: root/.config/nvim/after/plugin/gitsigns.lua
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-04 09:55:46 +0100
committerJoe <rbo@gmx.us>2024-01-04 09:55:46 +0100
commit8f5e6403860a3b380022c03e55f2cb8bef3f7871 (patch)
treed071340e8cfd15b9440a55cbdfe18b005718d8ca /.config/nvim/after/plugin/gitsigns.lua
parentup (diff)
downloaddotfiles-bsd-8f5e6403860a3b380022c03e55f2cb8bef3f7871.tar.gz
dotfiles-bsd-8f5e6403860a3b380022c03e55f2cb8bef3f7871.tar.bz2
dotfiles-bsd-8f5e6403860a3b380022c03e55f2cb8bef3f7871.tar.xz
dotfiles-bsd-8f5e6403860a3b380022c03e55f2cb8bef3f7871.tar.zst
dotfiles-bsd-8f5e6403860a3b380022c03e55f2cb8bef3f7871.zip
up
Diffstat (limited to '.config/nvim/after/plugin/gitsigns.lua')
-rw-r--r--.config/nvim/after/plugin/gitsigns.lua42
1 files changed, 42 insertions, 0 deletions
diff --git a/.config/nvim/after/plugin/gitsigns.lua b/.config/nvim/after/plugin/gitsigns.lua
new file mode 100644
index 0000000..d3f83f0
--- /dev/null
+++ b/.config/nvim/after/plugin/gitsigns.lua
@@ -0,0 +1,42 @@
+require('gitsigns').setup {
+ signs = {
+ add = { text = '│' },
+ change = { text = '│' },
+ delete = { text = '_' },
+ topdelete = { text = '‾' },
+ changedelete = { text = '~' },
+ untracked = { text = '┆' },
+ },
+ 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
+ },
+ 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,
+ virt_text_priority = 100,
+ },
+ current_line_blame_formatter = '<author>, <author_time:%Y-%m-%d> - <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
+ border = 'single',
+ style = 'minimal',
+ relative = 'cursor',
+ row = 0,
+ col = 1
+ },
+ yadm = {
+ enable = false
+ },
+}