From 4ffaae034cfe1f7ccf4394d4af0bfb3e7c9dfaf5 Mon Sep 17 00:00:00 2001 From: Bazaah Date: Thu, 21 Jul 2022 19:05:33 +0000 Subject: [PATCH] nvim/plug: lewis6991/gitsigns.nvim@release Replacing gitgutter, gitsigns appears to be the standard neovim git integration plugin. It is _significantly_ faster in responding to file deltas, and plays really nicely with a lot of other tooling in the neovim ecosystem. It also appears very customizable. --- nvim/lua/psoxizsh/plugins/config/gitsigns.lua | 12 ++++++++++++ nvim/lua/psoxizsh/plugins/plug.lua | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 nvim/lua/psoxizsh/plugins/config/gitsigns.lua diff --git a/nvim/lua/psoxizsh/plugins/config/gitsigns.lua b/nvim/lua/psoxizsh/plugins/config/gitsigns.lua new file mode 100644 index 0000000..7fd0116 --- /dev/null +++ b/nvim/lua/psoxizsh/plugins/config/gitsigns.lua @@ -0,0 +1,12 @@ +return function() + local gitsigns, util = require 'gitsigns', require 'psoxizsh.util' + + local defaults = { + sign_priority = 100, + current_line_blame_formatter_opts = { + relative_time = false + }, + } + + gitsigns.setup(util.mconfig('config.gitsigns', defaults)) +end diff --git a/nvim/lua/psoxizsh/plugins/plug.lua b/nvim/lua/psoxizsh/plugins/plug.lua index 68cc876..a0827b6 100644 --- a/nvim/lua/psoxizsh/plugins/plug.lua +++ b/nvim/lua/psoxizsh/plugins/plug.lua @@ -48,6 +48,11 @@ local plugins = { { 'scrooloose/nerdcommenter' }, -- Stat line integrations + { 'lewis6991/gitsigns.nvim', + tag = 'release', + requires = { 'nvim-lua/plenary.nvim' }, + config = require 'psoxizsh.plugins.config.gitsigns' + }, -- Buffer mangement { 'qpkorr/vim-bufkill' },