File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments