mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
10 lines
488 B
Diff
10 lines
488 B
Diff
--- a/helix-view/src/document.rs
|
|
+++ b/helix-view/src/document.rs
|
|
@@ -762,6 +762,7 @@ pub fn format(&self) -> Option<BoxFuture<'static, Result<Transaction, FormatterE
|
|
let text = self.text().clone();
|
|
let mut process = tokio::process::Command::new(&fmt_cmd);
|
|
process
|
|
+ .env("HX_FILE", self.path()?.to_str().unwrap_or(""))
|
|
.args(fmt_args)
|
|
.stdin(Stdio::piped())
|
|
.stdout(Stdio::piped())
|