refactor(nvim): separate diffview from neogit deps
This commit is contained in:
parent
cb7f87aa3f
commit
8ff4f14268
@ -1,4 +1,23 @@
|
||||
return {
|
||||
{
|
||||
"sindrets/diffview.nvim",
|
||||
keys = {
|
||||
{ "<localleader>dd", "<cmd>DiffviewOpen<CR>", desc = "Diff View: Open" },
|
||||
{ "<localleader>dh", "<cmd>DiffviewFileHistory<CR>", 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 = {
|
||||
{ "<leader>gd", "<cmd>DiffviewOpen<CR>", desc = "Diff View: Open" },
|
||||
{ "<leader>gh", "<cmd>DiffviewFileHistory<CR>", 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",
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user