Option to run external formatter from file working directory #10187
-
|
I'm using a custom [[language]]
name = "typescript"
scope = "source.ts"
file-types = ["ts", "mts", "cts"]
injection-regex = "(ts|typescript)"
roots = ["package.json"]
language-servers = [{ except-features = ["format"], name = "typescript-language-server" }]
formatter = { command = "pnpm", args = ["prettier", "--parser", "typescript"] }
auto-format = trueHowever, this doesn't work if I open Helix from the monorepo root, as there's no formatter = { command = "pwd" }Even if I installed a global prettier, it won't be using the correct |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
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.
-
|
Fixed in 25.01.1, nice one @robgonnella :D |
Beta Was this translation helpful? Give feedback.
Fixed in 25.01.1, nice one @robgonnella :D