refactor(nvim): separate diffview from neogit deps
This commit is contained in:
parent
cb7f87aa3f
commit
8ff4f14268
@ -1,4 +1,23 @@
|
|||||||
return {
|
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",
|
"neogitorg/neogit",
|
||||||
cmd = { "Neogit" },
|
cmd = { "Neogit" },
|
||||||
@ -38,25 +57,7 @@ return {
|
|||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{
|
"sindrets/diffview.nvim",
|
||||||
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,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user