Skip to content

Commit

Permalink
Enable multi-root support.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurnevsky committed Aug 17, 2023
1 parent e9458e3 commit 1e4742c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lsp-metals.el
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,12 @@ sources."
:type 'string
:package-version '(lsp-metals . "1.3"))

(defcustom lsp-metals-multi-root t
"If non nil, `metals' will be started in multi-root mode."
:type 'boolean
:group 'lsp-metals
:package-version '(lsp-metals . "1.3"))

(defface lsp-metals-face-overlay
'((t :inherit font-lock-comment-face))
"Face used for metals decoration overlays."
Expand Down Expand Up @@ -915,6 +921,7 @@ WORKSPACE is the workspace the client command was received from."
(make-lsp-client :new-connection (lsp-stdio-connection 'lsp-metals--server-command)
:major-modes '(scala-mode scala-ts-mode)
:priority -1
:multi-root lsp-metals-multi-root
:initialization-options '((decorationProvider . t)
(inlineDecorationProvider . t)
(didFocusProvider . t)
Expand Down

0 comments on commit 1e4742c

Please sign in to comment.