Add scala config

This commit is contained in:
Jeremy Dormitzer 2021-10-05 11:08:42 -04:00
parent db6848c11c
commit 4a581f0b3f
2 changed files with 12 additions and 0 deletions

View File

@ -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)

View File

@ -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)