aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/document.rs')
-rw-r--r--helix-view/src/document.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index 388810b1..88653948 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -726,7 +726,12 @@ impl Document {
if let Some((fmt_cmd, fmt_args)) = self
.language_config()
.and_then(|c| c.formatter.as_ref())
- .and_then(|formatter| Some((which::which(&formatter.command).ok()?, &formatter.args)))
+ .and_then(|formatter| {
+ Some((
+ helix_stdx::env::which(&formatter.command).ok()?,
+ &formatter.args,
+ ))
+ })
{
use std::process::Stdio;
let text = self.text().clone();