From 8ff4f14268c7b05d81d1183a274a5441654d7133 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 21 Jan 2024 03:52:22 -0600 Subject: [PATCH] refactor(nvim): separate diffview from neogit deps --- dots/.config/nvim/lua/plugins/configs/git.lua | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/git.lua b/dots/.config/nvim/lua/plugins/configs/git.lua index 8d0136f5..000f74ab 100644 --- a/dots/.config/nvim/lua/plugins/configs/git.lua +++ b/dots/.config/nvim/lua/plugins/configs/git.lua @@ -1,4 +1,23 @@ return { + { + "sindrets/diffview.nvim", + keys = { + { "dd", "DiffviewOpen", desc = "Diff View: Open" }, + { "dh", "DiffviewFileHistory", desc = "Diff View: File History" }, + }, + cmd = { + "DiffviewToggleFiles", + "DiffviewFileHistory", + "DiffviewFocusFiles", + "DiffviewRefresh", + "DiffviewClose", + "DiffviewOpen", + "DiffviewLog", + }, + opts = { + enhanced_diff_hl = true, + }, + }, { "neogitorg/neogit", cmd = { "Neogit" }, @@ -38,25 +57,7 @@ return { } end, dependencies = { - { - keys = { - { "gd", "DiffviewOpen", desc = "Diff View: Open" }, - { "gh", "DiffviewFileHistory", desc = "Diff View: File History" }, - }, - "sindrets/diffview.nvim", - cmd = { - "DiffviewToggleFiles", - "DiffviewFileHistory", - "DiffviewFocusFiles", - "DiffviewRefresh", - "DiffviewClose", - "DiffviewOpen", - "DiffviewLog", - }, - opts = { - enhanced_diff_hl = true, - }, - }, + "sindrets/diffview.nvim", "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim", },