mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 06:27:14 +01:00
improve neogit
This commit is contained in:
@@ -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' },
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user