Skip to content
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

feat(resolver): Resolve executable starting from open file path #333

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

p7g
Copy link

@p7g p7g commented Aug 17, 2022

Summary

If vim's current working directory is above the root of an npm project, vim-prettier will be unable to find the correct prettier executable despite editing a file that is within that JS project. This PR changes the executable resolver to search starting from the open file.

This probably also enables monorepo scenarios where the editor is open at the root and projects have different prettier configurations or versions.

Test Plan

I needed to make this change for the plugin to work for my use-case, and it has been working so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant