-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add support of g:go_doc_command and g:go_doc_options parameters #1420
Conversation
Personally I think it might be a good idea store this as a list, instead of two separate options:
You can then set this to Or perhaps even store all commands as a dict, instead of many options:
I don't know what Fatih thinks, though. |
Yeah, a list is better. We can then join later. For |
Sorry for delay. |
autoload/go/doc.vim
Outdated
return | ||
endif | ||
|
||
let command = printf("%s %s", go#util#Shellescape(bin_path), join(a:000, ' ')) | ||
let command = printf("%s %s", join(g:go_doc_command, ' '), join(a:000, ' ')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This removes the go#util#Shellescape()
part. You should probably map that to every entry in g:go_doc_command
?
(This should probably be done by the System()
function, but changing that would require careful testing of all the System()
invocations and may break people's configs).
Seems to work well in my testing, but there is a caveats with this: the It would be good to update the documentation as well, because this confused me rather a lot and it took me a trip to the source code to figure out why setting Currently it reads:
IMHO something like this would be better:
|
The doc was failing the linter, so fix that. Also improve the wording a wee bit.
Thank you @nk2ge5k. |
Thank you |
No description provided.