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' },