-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
vim-utils: fix vim-plug plugins #138349
vim-utils: fix vim-plug plugins #138349
Conversation
For some reason vim-plug doesn't seem to like that. This fixes it so that it can properly load the plugins.
very cool you could find the issue, I had dismissed this since the neovim.test.run_nvim_with_plug seemed to work. I think one better approach would be to remove |
When I build my system from this commit, I get
|
@ursi, pname is now mandatory so if you have some custom plugin without it, you should update it |
@teto Thanks for that! that was, indeed, the issue. However, after fixing that, |
I merged a pr that makes pname not mandatory, should be in nixos-unstable already, see #138406 |
That actually broke things like:
I get a plug path in the vim config that does not exists. It seems to work fine when I revert this PR. |
Derivation with the commit:
Derivation without the commit:
Looks like the commit makes nix not reference the plugin itself anymore. Thus it does not get built. |
|
vim-plug seems to not tolerate paths like
/nix/store/j67cqwvfrpq89ijvjdf1rhnk696hjv92-vimplugin-deoplete.nvim-2021-09-02/./.
. This PR adds a simple helper that strips the/.
off, which makes vim-plug happy and able to load the plugin.Motivation for this change
vim-plug seems to have broke
Should close #138084
Things done
Added a helper to strip repeated
/.
from paths. This is used when generating thePlug
lines.sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)