-
Notifications
You must be signed in to change notification settings - Fork 397
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
bug: No easy way to add packs supplied with NeoVim, e.g. cfilter #214
Comments
Just dont reset packpath then? Check the docs |
OK, so I do find it in the docs, and you're right, that does work. Sorry for missing it. I think that's not totally obvious default behavior though, essentially I think what's happening here is that we're prioritizing speed over correctness. Disabling NeoVim plugins out-of-the-box seems to me to violate the principle of least surprise. That's my take anyway - your call obviously. Thanks for the help. |
can we not just add cfilter to rtp in our configuration? I am facing the same issue, not being able to do |
I think there should be no need to do |
so I added the folder path to |
You are right, that I should at least keep the vim runtime as part of the package path. Just made that change. This has zero performance impact to lazy, since lazy doesn't use packadd anyway. |
@folke nice, good fix, this works! Thanks. |
Did you check docs and existing issues?
Neovim version (nvim -v)
0.8.1
Operating system/version
Arch Linux
Describe the bug
This is perhaps an error in my understanding, but it seems that because lazy.nvim wipes the
packpath
variable, there is no way to use thepackadd
command to use packages supplied with NeoVim. NeoVim these days supplies several 'plugins' as packages:Until I switched to NeoVim, I could use
cfilter
simply withvim.cmd.packadd('cfilter')
, but once usinglazy.nvim
, that doesn't seem to be a choice any more.For the record, for now I have worked around this with:
I understand that it's your intention to have
lazy.nvim
control the startup process for performance reasons, but at the minimum I would suggest that this is an aspect where the workaround(s) (if one is needed and I've not misunderstood something) maybe need to be a little clearer. I read README.md and wasn't really clear on whether there was an "official" approach here.Thanks for all your hard work on this fantastic new plugin manager!
Steps To Reproduce
Try to run
vim.cmd.packadd('cfilter')
(or VimL equivalent)Get an error:
E919: Directory not found in 'packpath': "pack/*/opt/cfilter"
E919: Directory not found in 'packpath': "pack/*/opt/cfilter"
Expected Behavior
cfilter
package can be added.Repro
The text was updated successfully, but these errors were encountered: