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

Enterprise ssh url #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Kuzat
Copy link

@Kuzat Kuzat commented Sep 25, 2023

No description provided.

@vincent178 vincent178 self-requested a review December 13, 2023 01:25
@vincent178
Copy link
Owner

Hey @Kuzat , sorry not being responsive for a long time, I refactored some of the code to make it easier to maintain and extend the usage like this, and I also add the tests support, would you mind update your PR to apply this, I could also update on your behalf if you're ok with this.

'https://github.com/\\3/\\4', '')
local raw_repo_url = vim.fn.systemlist("git config --get remote." ..
vim.g.nvim_github_linker_default_remote .. ".url")[1]
local repo_url = raw_repo_url:gsub(':', '/'):gsub('git@', 'https://'):gsub('%.git', '')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might not need this, it is supported by the long substitute string match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants