Replace fugitive with neogit

This commit is contained in:
Noah Håkansson 2024-03-17 18:44:07 +01:00
parent 36a671f221
commit d41f3be472
5 changed files with 59 additions and 32 deletions

View file

@ -0,0 +1,25 @@
local M = {
'NeogitOrg/neogit',
dependencies = {
'nvim-lua/plenary.nvim', -- required
'sindrets/diffview.nvim', -- optional - Diff integration
-- Only one of these is needed, not both.
'nvim-telescope/telescope.nvim', -- optional
},
config = true,
}
-- filetype: NeogitStatus
function M.config()
local neogit = require('neogit')
neogit.setup({})
-- Keymaps
vim.keymap.set('n', '<leader>gg', function()
neogit.open({ kind = 'split_above' })
end, { desc = 'neogit' })
end
return M