Replace fugitive with neogit
This commit is contained in:
parent
36a671f221
commit
d41f3be472
5 changed files with 59 additions and 32 deletions
25
lua/custom/plugins/neogit.lua
Normal file
25
lua/custom/plugins/neogit.lua
Normal 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
|
||||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue