mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Ensime just went missing from everywhere. On [[ensime.github.io]], they encourage to switch to metals - a new Scala language server already supported by lsp-mode. This commit: - removes ensime completely - adds a doctor.el to check for metals-emacs binary Original issue: https://discordapp.com/channels/406534637242810369/406554085794381833/628809956103028747 Metals: https://scalameta.org/metals/docs/editors/emacs.html
21 lines
616 B
EmacsLisp
21 lines
616 B
EmacsLisp
;;; lang/scala/config.el -*- lexical-binding: t; -*-
|
|
|
|
(after! scala-mode
|
|
(setq scala-indent:align-parameters t
|
|
;; indent block comments to first asterix, not second
|
|
scala-indent:use-javadoc-style t)
|
|
|
|
(setq-hook! 'scala-mode-hook
|
|
comment-line-break-function #'+scala-comment-indent-new-line)
|
|
|
|
(after! dtrt-indent
|
|
(add-to-list 'dtrt-indent-hook-mapping-list '(scala-mode c/c++/java scala-indent:step)))
|
|
|
|
(when (featurep! +lsp)
|
|
(add-hook 'scala-mode-local-vars-hook #'lsp!)))
|
|
|
|
|
|
(use-package! sbt-mode
|
|
:after scala-mode
|
|
:config (set-repl-handler! 'scala-mode #'+scala/open-repl))
|