Add scala config
This commit is contained in:
parent
db6848c11c
commit
4a581f0b3f
11
emacs/.emacs.d/config/init-scala.el
Normal file
11
emacs/.emacs.d/config/init-scala.el
Normal 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)
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user