17 lines
561 B
EmacsLisp
17 lines
561 B
EmacsLisp
;;; lang/scala/doctor.el -*- lexical-binding: t; -*-
|
|
|
|
(assert! (or (not (modulep! +lsp))
|
|
(modulep! :tools lsp))
|
|
"This module requires (:tools lsp)")
|
|
|
|
(assert! (or (not (modulep! +tree-sitter))
|
|
(modulep! :tools tree-sitter))
|
|
"This module requires (:tools tree-sitter)")
|
|
|
|
(if (and (modulep! +lsp)
|
|
(not (executable-find "metals")))
|
|
(warn! "metals isn't installed"))
|
|
|
|
(when (modulep! :editor format)
|
|
(unless (executable-find "scalafmt")
|
|
(warn! "Couldn't find scalafmt. Formatting will be disabled.")))
|