From 68a3ed8af4a3331ee756fedf59bc372e527a36e8 Mon Sep 17 00:00:00 2001 From: Masahiro Kasashima Date: Sat, 17 Jun 2023 21:02:43 +0900 Subject: [PATCH] Fix some bugs on previous commit --- lua/openingh/init.lua | 4 ++-- plugin/openingh.lua | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/openingh/init.lua b/lua/openingh/init.lua index 0c2b037..d4dd951 100644 --- a/lua/openingh/init.lua +++ b/lua/openingh/init.lua @@ -23,9 +23,9 @@ function M.setup() end local get_current_branch_or_commit_with_priority = function(priority) - if (not priority) or (priority and priority == 'branch') then + if priority == 'branch-priority' then return utils.get_current_branch_or_commit() - elseif (priority and priority == 'branch') then + elseif priority == 'commit-priority' then return utils.get_current_commit_or_branch() else return utils.get_current_branch_or_commit() diff --git a/plugin/openingh.lua b/plugin/openingh.lua index be0b667..e42dff0 100644 --- a/plugin/openingh.lua +++ b/plugin/openingh.lua @@ -37,7 +37,6 @@ end, { }) vim.api.nvim_create_user_command("OpenInGHRepo", function() - print(opts) openingh.open_repo(opts.args) end, { nargs = '?',