feat(format): add :lang clojure formatter
This commit is contained in:
parent
bfb963f2f3
commit
9a7eae77c8
2 changed files with 7 additions and 0 deletions
|
@ -16,6 +16,9 @@
|
|||
(use-package! clojure-mode
|
||||
:hook (clojure-mode . rainbow-delimiters-mode)
|
||||
:config
|
||||
(when (executable-find "zprint")
|
||||
(set-formatter! 'zprint '("zprint") :modes '(clojure-mode clojurec-mode clojurescript-mode)))
|
||||
|
||||
(when (modulep! +lsp)
|
||||
(add-hook! '(clojure-mode-local-vars-hook
|
||||
clojurec-mode-local-vars-hook
|
||||
|
|
|
@ -5,3 +5,7 @@
|
|||
(not (modulep! +lsp)))
|
||||
(unless (executable-find "clj-kondo")
|
||||
(warn! "Couldn't find clj-kondo. flycheck-clj-kondo will not work.")))
|
||||
|
||||
(when (modulep! :editor format)
|
||||
(unless (executable-find "zprint")
|
||||
(warn! "Couldn't find zprint. Formatting will be disabled.")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue