Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #53: Issue and PR autocomplete not working in Octo files #61

Merged
merged 2 commits into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lua/cmp_git/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ M.get_git_info = function(remotes, opts)
local host, owner, repo = nil, nil, nil

if vim.bo.filetype == "octo" then
host = require("octo.config").get_config().github_hostname
host = require("octo.config").values.github_hostname or ""
if host == "" then
host = "github.com"
end
local filename = vim.fn.expand("%:p:h")
owner, repo = string.match(filename, "^octo://(.+)/(.+)/.+$")
else
Expand Down