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

View file

@ -9,10 +9,10 @@ local M = {
function M.config()
require('undotree').setup({
float_diff = true, -- using float window previews diff, set this `true` will disable layout option
float_diff = true, -- using float window previews diff, set this `true` will disable layout option
layout = 'left_bottom', -- "left_bottom", "left_left_bottom"
position = 'left', -- "right", "bottom"
ignore_filetype = { 'NvimTree', 'fugitive', 'undotree', 'undotreeDiff', 'qf', 'TelescopePrompt', 'spectre_panel', 'tsplayground' },
position = 'left', -- "right", "bottom"
ignore_filetype = { 'NvimTree', 'fugitive', 'NeogitStatus', 'undotree', 'undotreeDiff', 'qf', 'TelescopePrompt', 'spectre_panel', 'tsplayground' },
window = {
winblend = 30,
},