Skip to content

Commit 67d2928

Browse files
author
Anish Moorthy
committed
Add neogit and bind to SPC g g
1 parent d74796c commit 67d2928

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

init.lua

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,29 @@ require('lazy').setup({
236236
-- NOTE: Plugins can also be added by using a table,
237237
-- with the first argument being the link and the following
238238
-- keys can be used to configure plugin behavior/loading/etc.
239-
--
239+
{
240+
'NeogitOrg/neogit',
241+
dependencies = {
242+
'nvim-lua/plenary.nvim',
243+
'sindrets/diffview.nvim',
244+
245+
-- Only one of these is needed.
246+
'nvim-telescope/telescope.nvim', -- optional
247+
},
248+
config = function()
249+
require('neogit').setup {
250+
mappings = {
251+
popup = {
252+
-- TODO: Impoerfect, this maps *both* p,P to push
253+
['P'] = nil,
254+
['p'] = 'PushPopup',
255+
['F'] = 'PullPopup',
256+
},
257+
},
258+
}
259+
vim.keymap.set('n', '<leader>gg', '<cmd>:Neogit<CR>', { desc = '[G]it [G]atus' })
260+
end,
261+
},
240262
-- Use `opts = {}` to automatically pass options to a plugin's `setup()` function, forcing the plugin to be loaded.
241263
--
242264

0 commit comments

Comments
 (0)