fix(git): rename show() to open()
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ function M.setup()
|
|||||||
sidebar.toggle,
|
sidebar.toggle,
|
||||||
{ desc = "Toggle git status sidebar" }
|
{ desc = "Toggle git status sidebar" }
|
||||||
)
|
)
|
||||||
vim.keymap.set("n", "<leader>gl", log.show, { desc = "Show git log" })
|
vim.keymap.set("n", "<leader>gl", log.open, { desc = "Show git log" })
|
||||||
vim.keymap.set("n", "<leader>gd", function()
|
vim.keymap.set("n", "<leader>gd", function()
|
||||||
diff.split({ revspec = "", vertical = true })
|
diff.split({ revspec = "", vertical = true })
|
||||||
end, { desc = "Diff index vs worktree (vsplit)" })
|
end, { desc = "Diff index vs worktree (vsplit)" })
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ local DEFAULT_MAX_COUNT = 1000
|
|||||||
---@field max_count integer? cap on commits to show. Nil uses the default, <= 0 means "all"
|
---@field max_count integer? cap on commits to show. Nil uses the default, <= 0 means "all"
|
||||||
|
|
||||||
---@param opts ow.Git.LogOpts?
|
---@param opts ow.Git.LogOpts?
|
||||||
function M.show(opts)
|
function M.open(opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
local max_count = opts.max_count
|
local max_count = opts.max_count
|
||||||
if max_count == nil then
|
if max_count == nil then
|
||||||
|
|||||||
Reference in New Issue
Block a user