improve neogit

This commit is contained in:
Thomas Ruoff
2026-01-08 17:12:41 +01:00
parent ad8482ad5c
commit 8f7712115b

View File

@@ -3,16 +3,14 @@ return {
'NeogitOrg/neogit', 'NeogitOrg/neogit',
lazy = false, lazy = false,
dependencies = { dependencies = {
'nvim-lua/plenary.nvim', -- required 'nvim-lua/plenary.nvim',
'sindrets/diffview.nvim', -- optional - Diff integration 'sindrets/diffview.nvim',
'folke/snacks.nvim', -- optional 'folke/snacks.nvim',
}, },
event = 'User InGitRepo',
opts = { opts = {
graph_style = 'kitty', graph_style = 'unicode',
kind = 'vsplit', kind = 'vsplit',
integrations = {
diffview = 'diffview',
},
}, },
keys = { keys = {
{ '<leader>gs', ':Neogit<CR>', { desc = '[g]it [s]tatus' } }, { '<leader>gs', ':Neogit<CR>', { desc = '[g]it [s]tatus' } },
@@ -21,13 +19,15 @@ return {
{ {
'sindrets/diffview.nvim', 'sindrets/diffview.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' }, dependencies = { 'nvim-tree/nvim-web-devicons' },
opts = {
diff_args = { '--ignore-all-space' },
},
},
{
'lewis6991/gitsigns.nvim',
event = { 'BufReadPre', 'BufNewFile' },
opts = {
current_line_blame = false,
},
}, },
-- {
-- 'tpope/vim-fugitive',
-- lazy = false,
-- keys = {
-- { '<leader>gs', ':vertical Git<CR>', { desc = '[g]it [s]tatus' } },
-- },
-- },
-- { 'tpope/vim-rhubarb' },
} }