mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
fix: rebar3 does not work with fmt -v arguments
This commit is contained in:
parent
286f04c6ef
commit
2d8cc182e1
1 changed files with 6 additions and 1 deletions
|
|
@ -10,5 +10,10 @@
|
|||
"This module requires (:tools tree-sitter)")
|
||||
|
||||
(when (modulep! :editor format)
|
||||
(unless (and (executable-find "rebar3") (zerop (car (doom-call-process "rebar3" "fmt" "-v"))))
|
||||
(unless (executable-find "erlfmt")
|
||||
(warn! "Couldn't find erlfmt. Formatting will be disabled.")))
|
||||
|
||||
(when (modulep! :editor format)
|
||||
(unless (and (executable-find "rebar3")
|
||||
(zerop (car (doom-call-process "rebar3" "format"))))
|
||||
(warn! "Couldn't find rebar3 with format plugin installed (needed in Erlang module). Formatting will be disabled.")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue