diff --git a/emacs/.emacs.d/config/init-scala.el b/emacs/.emacs.d/config/init-scala.el new file mode 100644 index 0000000..1532d16 --- /dev/null +++ b/emacs/.emacs.d/config/init-scala.el @@ -0,0 +1,11 @@ +;; -*- lexical-binding: t; -*- + +(use-package lsp-metals + :hook (scala-mode . lsp) + :custom + ;; Metals claims to support range formatting by default but it supports range + ;; formatting of multiline strings only. You might want to disable it so that + ;; emacs can use indentation provided by scala-mode. + (lsp-metals-server-args '("-J-Dmetals.allow-multiline-string-formatting=off"))) + +(provide 'init-scala) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 03620c0..3fc1ebc 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -90,6 +90,7 @@ (require 'init-python) (require 'init-clojure) (require 'init-lisp) +(require 'init-scala) (require 'init-js) (require 'init-web) (require 'init-xml)