diff --git a/lua/plugins/diffview.lua b/lua/plugins/diffview.lua new file mode 100644 index 0000000..6a386b2 --- /dev/null +++ b/lua/plugins/diffview.lua @@ -0,0 +1,7 @@ +--- @type LazySpec | LazySpec[] +return { + 'sindrets/diffview.nvim', + opts = { + enhanced_diff_hl = true, + }, +} diff --git a/lua/plugins/neogit.lua b/lua/plugins/neogit.lua index fa788c7..5c5d3fc 100644 --- a/lua/plugins/neogit.lua +++ b/lua/plugins/neogit.lua @@ -4,19 +4,7 @@ return { 'NeogitOrg/neogit', dependencies = { 'nvim-lua/plenary.nvim', -- required - { - 'sindrets/diffview.nvim', - opts = { - -- The default view is 'diff2' which shows the diff of the current file in the left pane and the diff of the staged file in - -- the right pane. You can change this to 'diff1' to show only the current file's diff. - view = { - default = { - layout = 'diff2_horizontal', - }, - }, - }, - }, - + 'sindrets/diffview.nvim', -- Only one of these is needed. 'nvim-telescope/telescope.nvim', -- optional },