From 6bef8f32b19778fdfe52f0eb39719425508dcc7b Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 24 Apr 2025 11:36:39 +0300 Subject: Refactored nvim config to make it easier and less insanely nested --- .config/nvim/lua/plugins/neogit.lua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .config/nvim/lua/plugins/neogit.lua (limited to '.config/nvim/lua/plugins/neogit.lua') diff --git a/.config/nvim/lua/plugins/neogit.lua b/.config/nvim/lua/plugins/neogit.lua new file mode 100644 index 0000000..e1e164f --- /dev/null +++ b/.config/nvim/lua/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