2022-09-25 23:30:27 +03:00
|
|
|
if vim.g.openingh then
|
2022-09-26 22:57:58 +03:00
|
|
|
return
|
2022-09-25 23:30:27 +03:00
|
|
|
end
|
|
|
|
|
vim.g.openingh = true
|
|
|
|
|
|
2022-09-26 23:53:18 +03:00
|
|
|
require("openingh").setup()
|
|
|
|
|
|
2022-09-25 23:30:27 +03:00
|
|
|
vim.api.nvim_create_user_command("OpenInGHFile", function()
|
2022-09-28 12:39:19 -04:00
|
|
|
require("openingh"):openFile()
|
2022-09-25 23:30:27 +03:00
|
|
|
end, {})
|
|
|
|
|
|
|
|
|
|
vim.api.nvim_create_user_command("OpenInGHRepo", function()
|
2022-09-26 22:57:58 +03:00
|
|
|
require("openingh"):openRepo()
|
2022-09-25 23:30:27 +03:00
|
|
|
end, {})
|