aboutsummaryrefslogtreecommitdiff
path: root/apheleia-formatters.el
diff options
context:
space:
mode:
Diffstat (limited to 'apheleia-formatters.el')
-rw-r--r--apheleia-formatters.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/apheleia-formatters.el b/apheleia-formatters.el
index ac05fe7..c12c970 100644
--- a/apheleia-formatters.el
+++ b/apheleia-formatters.el
@@ -565,6 +565,9 @@ NO-QUERY, and CONNECTION-TYPE."
(ignore name noquery connection-type)
(let* ((run-on-remote (and (eq apheleia-remote-algorithm 'remote)
remote))
+ ;; Resolve the formatter executable's path to ensure it's
+ ;; found
+ (command (cons (executable-find (car command) run-on-remote) (cdr command)))
(stderr-file (apheleia--make-temp-file run-on-remote "apheleia"))
(args
(append