chore: implement :OpenInGHFile with its utils

This commit is contained in:
Ali Almohaya 2022-09-26 22:57:58 +03:00
parent dba902f5cc
commit b712206961
No known key found for this signature in database
GPG key ID: 4B80BC43FC6007E0
3 changed files with 38 additions and 23 deletions

View file

@ -1,13 +1,12 @@
if vim.g.openingh then
return
return
end
vim.g.openingh = true
vim.api.nvim_create_user_command("OpenInGHFile", function()
require("openingh").openFile()
require("openingh").openFile()
end, {})
vim.api.nvim_create_user_command("OpenInGHRepo", function()
require("openingh"):openRepo()
require("openingh"):openRepo()
end, {})