Fix some bugs on previous commit
This commit is contained in:
parent
5e742c3d7f
commit
68a3ed8af4
2 changed files with 2 additions and 3 deletions
|
|
@ -23,9 +23,9 @@ function M.setup()
|
||||||
end
|
end
|
||||||
|
|
||||||
local get_current_branch_or_commit_with_priority = function(priority)
|
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()
|
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()
|
return utils.get_current_commit_or_branch()
|
||||||
else
|
else
|
||||||
return utils.get_current_branch_or_commit()
|
return utils.get_current_branch_or_commit()
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ end, {
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_user_command("OpenInGHRepo", function()
|
vim.api.nvim_create_user_command("OpenInGHRepo", function()
|
||||||
print(opts)
|
|
||||||
openingh.open_repo(opts.args)
|
openingh.open_repo(opts.args)
|
||||||
end, {
|
end, {
|
||||||
nargs = '?',
|
nargs = '?',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue