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

Try to set ackprg on every invocation #280

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robin92
Copy link

@robin92 robin92 commented May 3, 2022

Before this change, plugin would stop initialization unless g:ackprg has been found. This would prohibit from loading :Ack, :AckFromSearch and other autoload commands from being accessible. With this patch, plugin continues initialization when g:ackprg is missing and retries setting it when one of the autoload commands is called.

Before this change, plugin would stop initialization unless g:ackprg has
been found. This would prohibit from loading :Ack, :AckFromSearch and
other autoload commands from being accessible. With this patch, plugin
continues initialization when g:ackprg is missing and retries setting it
when one of the autoload commands is called.
@robin92
Copy link
Author

robin92 commented May 3, 2022

To give more context, I configure plugins using after directory. Setting g:ackprg there would cause :Ack command not to be present in VIM as g:ackprg would be set after the plugin has been initialized.

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.

None yet

1 participant