Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/gopls: suppress adding URLs to hover #41417
In vim, the URL in the hover document given by gopls is actually unclickable because the popup window does not capture focus. However, the presence of these URLs can affect the sentence flow of the document text.
I know there's a feature in vim called conceal that hides them, but since URLs are usually long, actually hiding them leaves a huge black hole, like this:
I looked at the source code for these modules and found that the original documentation comments did not contain URLs, so they should have been added actively by gopls.
I know that some GUI editors like vscode have this feature that is very useful, as they often have an integrated browser that can easily display what the link is pointing to. But in other term-based editors, actually opening the URL is not very convenient and breaks the train of thought.
So is it possible to request an option to turn this feature off?
Thanks! It does work!