Fix broken visual mode mapping

This commit is contained in:
Tyler Hallada 2023-12-01 15:28:12 -05:00
parent 4d1f95a7d8
commit 6d543e4409

View File

@ -16,7 +16,7 @@ return {
}, },
}, },
keys = { keys = {
{ "v", "<leader>gl", "<cmd>'<,'>DiffviewFileHistory<cr>", desc = "Toggle git log of selected lines" }, { "<leader>gl", "<cmd>'<,'>DiffviewFileHistory<cr>", mode = "v", desc = "Toggle git log of selected lines" },
{ "<leader>gL", "<cmd>DiffviewFileHistory<cr>", desc = "Toggle git log of current branch" }, { "<leader>gL", "<cmd>DiffviewFileHistory<cr>", desc = "Toggle git log of current branch" },
{ "<leader>gl", "<cmd>DiffviewFileHistory %<cr>", desc = "Toggle git log of current file history" }, { "<leader>gl", "<cmd>DiffviewFileHistory %<cr>", desc = "Toggle git log of current file history" },
{ "<leader>gd", "<cmd>DiffviewOpen<cr>", desc = "Git diff current file against the index" }, { "<leader>gd", "<cmd>DiffviewOpen<cr>", desc = "Git diff current file against the index" },