mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
11 lines
488 B
Diff
11 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())
|