-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
vimPlugins: turn filetype and syntax before sourcing the plugins #66536
Conversation
Vim Terraform expects the `filetypedetect` group to exist. However, since we were enabling the filetype and the syntax *after* loading the plugins, it was exiting with an error preventing us from generating the remote plugins manifest with the plugin enabled. See NixOS#65894 for context.
Tested with neovim on NixOS only. Reviewer: Please test with Vim as well as Darwin!
|
We already had it in the vimRC. I merely moved it to the top. EDIT: I see what you mean, sorry for missing your point. Another way to solve this is to enable this patch only for the manifest generation. It might still break the result vim. I'll give it a shot. |
@timokau It seems to work for me if I enabled at the top only for generating the manifest. What do you think of this approach? |
I don't think you missed my point; On the contrary, I missed that we already set But then there's still justinmk's point in neovim/neovim#6596 (comment) that this may interfere with plugin managers. So your new solution is probably better. Not sure why plugin managers do the |
Instead of |
@timokau sure that sounds like a good idea. I've added PTAL |
Isn't
I don't know that acronym. |
That's right. I removed it then.
I'm not sure actually, that's a good question. We could take this discussion on a separate issue and look deeper into plugins. Maybe @junegunn could chime in here as well.
Please Take Another Look :) |
Right, I'm fine with merging this for now if it fixes the immediate build failure 👍. Anything else can be done as a followup.
Good to go :) |
…ins (NixOS#66536)" This reverts commit a3bf0c2.
Motivation for this change
Vim Terraform expects the
filetypedetect
group to exist. However, since we were enabling the filetype and the syntax after loading the plugins, it was exiting with an error preventing us from generating the remote plugins manifest with the plugin enabled. See #65894 for context.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @timokau @gloaming @manveru @rvolosatovs
closes #65894