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
neovim: generate remote plugin manifest #53084
Conversation
I tested this with the |
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.
Pure awesomeness - great work!
I haven't tested it yet, but I can't come up with a reason why it would not work
89d0825
to
8db8f71
Compare
Given the recent fallout on my last refactor (#53112, #53113) I've added some better error handling and a testcase (we should have more testcases). The error handling is important since we're starting neovim with a vimrc. That vimrc should not contain any errors since it was automatically generated, but in case it does this will make it easier to debug. I've also added the error handling (e.g. not silently ignoring errors) to the helptag generation, although that is less likely to fail. I have
|
@GrahamcOfBorg build vimUtils.test_nvim_with_remote_plugin |
The high rebuild count is because |
Might be nice to have until neovim adopts a better solution. |
Do you plan to open a pull request for that? |
This makes sure the user doesn't have to call `UpdateRemotePlugins` manually for plugins installed through nix. A minor patch to neovim is necessary, but it should be harmless. See neovim/neovim#9413 for a discussion about the patch.
Previously vim would silently fail when help tags couldn't be generated. We need to pass the "verbose" flag (with verbose level 1) to convince vim to print errors to standard error.
8db8f71
to
2bc0e00
Compare
@GrahamcOfBorg build vimUtils.test_nvim_with_remote_plugin |
@Mic92 any objections to merge? |
FTR, I've been running this for a while now and it seems to work fine. |
Motivation for this change
This makes sure the user doesn't have to call
UpdateRemotePlugins
manually for plugins installed through nix. A minor patch to neovim is necessary, but it should be harmless. See neovim/neovim#9413 for a discussion about the patch.cc @Mic92 @rvolosatovs
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)