-
-
Notifications
You must be signed in to change notification settings - Fork 383
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-rails and Ember .projections.json in subdirectory #505
Comments
I'm afraid there's not, currently. My intended solution for this was to unify both plugins with the same projections system, but that's proving to be really difficult. If you're feeling ambitious, you can look into making |
@tpope If it's proving difficult, how about a config to disable it for now? |
|
I'm not feeling ambitious. I was suggesting more in terms of early returning from RailsDetect based on a global config variable that I can set if I know I have projectionist or any other plugin which might conflict. |
What? It needs to be conditional on the project. A global variable that unconditionally short circuited |
True. I would like to short circuit only the alternation, while keeping everything else. |
If you're looking for a hack, duplicate your Projectionist alternates in |
That's not how I meant at all. I tried to say that if combining the two plugins is a long term goal and there is no easy way to integrate them now, there could be a correct, simple way to provide a config that disables only parts of the rails.vim behavior while keeping things consistent and solving a few of the common use cases. I understand now that there probably isn't an good way, so it's better to keep the workarounds in our own vimfiles. |
Which parts though? Your request for alternates seems tailor made your own particular config. The next best thing to true unification is "innermost nested directory wins". This isn't some insurmountable challenge, it's just way down on my priority list. |
I just observed the conflict with the Another option is to drop the support for |
That's exactly the end goal. The problem is that rails.vim supports additional behavior, like the ability for |
Thanks for the explanations! I think I see the bigger picture now. |
I have a vim rails installed and an ember app in a subdirectory with a .projections.json. Any time there's a conflict (
:Econtroller
,:Eserializer
) it's using the Rails projections instead of the Ember ones.Is there a way to exclude this subdirectory from the Rails projections?
The text was updated successfully, but these errors were encountered: