mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
feat(format): add :lang scala formatter
This commit is contained in:
@ -22,6 +22,8 @@
|
|||||||
(when (modulep! +tree-sitter)
|
(when (modulep! +tree-sitter)
|
||||||
(add-hook 'scala-mode-local-vars-hook #'tree-sitter! 'append))
|
(add-hook 'scala-mode-local-vars-hook #'tree-sitter! 'append))
|
||||||
|
|
||||||
|
(set-formatter! 'scalafmt '("scalafmt" "--stdin") :modes '(scala-mode))
|
||||||
|
|
||||||
(set-ligatures! 'scala-mode
|
(set-ligatures! 'scala-mode
|
||||||
;; Functional
|
;; Functional
|
||||||
:def "def"
|
:def "def"
|
||||||
|
@ -11,3 +11,7 @@
|
|||||||
(if (and (modulep! +lsp)
|
(if (and (modulep! +lsp)
|
||||||
(not (executable-find "metals")))
|
(not (executable-find "metals")))
|
||||||
(warn! "metals isn't installed"))
|
(warn! "metals isn't installed"))
|
||||||
|
|
||||||
|
(when (modulep! :editor format)
|
||||||
|
(unless (executable-find "scalafmt")
|
||||||
|
(warn! "Couldn't find scalafmt. Formatting will be disabled.")))
|
||||||
|
Reference in New Issue
Block a user