-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
wants
documentation
#537
Comments
@horseinthesky I believe the reason that |
Understood. For not I don't quite understand how
works exactly. Removing |
Tbh I personally don't use the key so am not an expert on it. I've always envisioned it will change or be removed and would rather not have to tweak my config, that being said I believe the general idea around this key is that it checks if a plugin in the wants table is loaded when the plugin using the wants key is about to be loaded and if the plugin is not it then loads the plugins in the wants table, that should recursively load any plugins wanted by those plugins and so on and so for but don't know how well it all works/exactly what bits were implemented. |
That is correct. I decided to open the issue due to:
|
Will leave this for @wbthomason other than providing context not sure what else I can add. If the plan is still to change it's behaviour, rename or remove it then as was initially discussed in the issue then I advise against using it or documenting its current behaviour. The cat might be out of the bag a little and people are now using it but I think it still shouldn't be encouraged yet till the longterm plan for it is complete. In any event I don't really have much else to add. |
This feature doesn't seem to be working properly. Take the following setup code as example. require'packer'.startup{
{
-- `nvim-web-devicons` is denpency of several other plugins.
{'kyazdani42/nvim-web-devicons', opt = true},
-- `nvim-tree.lua` requires `nvim-web-devicons` to be loaded first.
{'kyazdani42/nvim-tree.lua', wants = 'nvim-web-devicons'},
},
{},
} After running |
@atchim: Please open a new issue for the problem you're observing. Thanks! |
Here is my 2 cents (revised): "wants" is currently undocumented. "after" is documented oddly with before in example found doc/packer.txt and README.md as :
This is correct but confusing for careless person like me. Isn't it more like:
(Above fixed. I was typing with sleepy eyes.) |
Of course, if |
@wbthomason, I already created an issue for this. You can find it here. |
Nobody |
Wow, I just spent 2 hours debugging my plugin dependencies and the reason turns out to be an undocumented option. It is a shame that Neither |
Describe the feature
I see a lot of people use
wants
term which is not mentioned in README.Could you please explain what it is for and how I should use it?
The text was updated successfully, but these errors were encountered: