Option to run external formatter from file working directory #10187
Unanswered
theomessin
asked this question in
Ideas
Replies: 1 comment
-
I ran into this issue too and made an attempt at solution. This seems to work for me locally. I'll admit I new to Rust and this project so apologies if I'm way off. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using a custom
.helix/languages.toml
for a monorepo setup. I don't want to use a globalprettier
bin, but rather the one installed in the currently worked on package. This is my config:However, this doesn't work if I open Helix from the monorepo root, as there's no
package.json
there andpnpm prettier
fails. Maybe I'm misunderstanding how the workspace roots work, but I don't think the formatter is using these either. I ranpwd
and see it's just the folder I opened Helix from.Even if I installed a global prettier, it won't be using the correct
.prettierignore
and.prettierrc.yml
. I would like the option of running the formatter from the working directory of the currently open file.Beta Was this translation helpful? Give feedback.
All reactions