From da5359364637eddbadcc188121c1a3e38afebba3 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 27 Oct 2024 23:55:50 +0200 Subject: Split the git.lua into 4 separate plugins --- .config/nvim/lua/custom/plugins/neogit.lua | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .config/nvim/lua/custom/plugins/neogit.lua (limited to '.config/nvim/lua/custom/plugins/neogit.lua') diff --git a/.config/nvim/lua/custom/plugins/neogit.lua b/.config/nvim/lua/custom/plugins/neogit.lua new file mode 100644 index 0000000..e1e164f --- /dev/null +++ b/.config/nvim/lua/custom/plugins/neogit.lua @@ -0,0 +1,33 @@ +return { + 'NeogitOrg/neogit', + cmd = 'Neogit', + keys = { + { 'gb', 'Neogit branch' }, + { 'gs', 'Neogit' }, + { 'gL', 'Neogit log' }, + { 'gc', 'Neogit commit' }, + { 'gp', 'Neogit push' }, + { 'gP', 'Neogit pull' }, + { 'gr', 'Neogit rebase' }, + { 'gm', 'Neogit merge' }, + }, + opts = function() + return { + commit_editor = { spell_check = false }, + mappings = { + commit_editor = { + [''] = 'Submit', + [''] = 'Abort', + }, + commit_editor_I = { + [''] = 'Submit', + [''] = 'Abort', + }, + popup = { + ['p'] = 'PushPopup', + ['P'] = 'PullPopup', + }, + }, + } + end, +} -- cgit v1.3.1