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
|
(use-package! clojure-mode
|
||||||
:hook (clojure-mode . rainbow-delimiters-mode)
|
:hook (clojure-mode . rainbow-delimiters-mode)
|
||||||
:config
|
:config
|
||||||
|
(when (executable-find "zprint")
|
||||||
|
(set-formatter! 'zprint '("zprint") :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
|
||||||
clojurec-mode-local-vars-hook
|
clojurec-mode-local-vars-hook
|
||||||
|
|
|
@ -5,3 +5,7 @@
|
||||||
(not (modulep! +lsp)))
|
(not (modulep! +lsp)))
|
||||||
(unless (executable-find "clj-kondo")
|
(unless (executable-find "clj-kondo")
|
||||||
(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)
|
||||||
|
(unless (executable-find "zprint")
|
||||||
|
(warn! "Couldn't find zprint. Formatting will be disabled.")))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue