fix(clojure): prefer cljfmt now it supports STDIN

This commit is contained in:
Ellis Kenyo 2023-07-24 20:53:18 +01:00
parent 249a39acb4
commit 79172239a7
No known key found for this signature in database
GPG key ID: 298BE5D997EBAA02
2 changed files with 4 additions and 4 deletions

View file

@ -16,8 +16,8 @@
(use-package! clojure-mode (use-package! clojure-mode
:hook (clojure-mode . rainbow-delimiters-mode) :hook (clojure-mode . rainbow-delimiters-mode)
:config :config
(when (executable-find "zprint") (when (executable-find "cljfmt")
(set-formatter! 'zprint '("zprint") :modes '(clojure-mode clojurec-mode clojurescript-mode))) (set-formatter! 'cljfmt '("cljfmt" "fix" "-") :modes '(clojure-mode clojurec-mode clojurescript-mode)))
(when (modulep! +lsp) (when (modulep! +lsp)
(add-hook! '(clojure-mode-local-vars-hook (add-hook! '(clojure-mode-local-vars-hook

View file

@ -7,5 +7,5 @@
(warn! "Couldn't find clj-kondo. flycheck-clj-kondo will not work."))) (warn! "Couldn't find clj-kondo. flycheck-clj-kondo will not work.")))
(when (modulep! :editor format) (when (modulep! :editor format)
(unless (executable-find "zprint") (unless (executable-find "cljfmt")
(warn! "Couldn't find zprint. Formatting will be disabled."))) (warn! "Couldn't find cljfmt. Formatting will be disabled.")))