From e5c049bdaa32d861c89c65201d95db63a5aff141 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Wed, 29 Apr 2026 11:11:45 +0200 Subject: [PATCH] fix(git): rename show() to open() --- lua/git/init.lua | 2 +- lua/git/log.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/git/init.lua b/lua/git/init.lua index 89ed641..164045a 100644 --- a/lua/git/init.lua +++ b/lua/git/init.lua @@ -84,7 +84,7 @@ function M.setup() sidebar.toggle, { desc = "Toggle git status sidebar" } ) - vim.keymap.set("n", "gl", log.show, { desc = "Show git log" }) + vim.keymap.set("n", "gl", log.open, { desc = "Show git log" }) vim.keymap.set("n", "gd", function() diff.split({ revspec = "", vertical = true }) end, { desc = "Diff index vs worktree (vsplit)" }) diff --git a/lua/git/log.lua b/lua/git/log.lua index 7ff7bb9..3130685 100644 --- a/lua/git/log.lua +++ b/lua/git/log.lua @@ -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" ---@param opts ow.Git.LogOpts? -function M.show(opts) +function M.open(opts) opts = opts or {} local max_count = opts.max_count if max_count == nil then