summaryrefslogtreecommitdiffstats
path: root/after/plugin/gitsigns.lua
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-04-30 18:41:13 -0400
committerSquibid <me@zacharyscheiman.com>2023-04-30 18:41:13 -0400
commit01a09f243ce07d367c539d69d4a7f4541ab1dcd7 (patch)
treeec2af23e59a38d4f9ac476e69abc07c8110b52a1 /after/plugin/gitsigns.lua
parent7c5d3eff786bef884022cc813448bb085ba4eccd (diff)
downloadnvim-01a09f243ce07d367c539d69d4a7f4541ab1dcd7.tar.gz
nvim-01a09f243ce07d367c539d69d4a7f4541ab1dcd7.tar.bz2
nvim-01a09f243ce07d367c539d69d4a7f4541ab1dcd7.zip
new config old version is now on v1 branch
Diffstat (limited to 'after/plugin/gitsigns.lua')
-rw-r--r--after/plugin/gitsigns.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/after/plugin/gitsigns.lua b/after/plugin/gitsigns.lua
new file mode 100644
index 0000000..b5436ae
--- /dev/null
+++ b/after/plugin/gitsigns.lua
@@ -0,0 +1,28 @@
+local status_ok, gitsigns = pcall(require, "gitsigns")
+if not status_ok then
+ return
+end
+
+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 = {
+ interval = 1000,
+ follow_files = true
+ },
+ attach_to_untracked = true,
+ current_line_blame_formatter = '<author>, <author_time:%Y-%m-%d> - <summary>',
+ preview_config = {
+ border = 'shadow',
+ },
+}