Skip to content

Commit b6a4d24

Browse files
authored
lsp-volar: enable hybrid mode by default & add add-on mode (#4826)
1 parent 8579c6c commit b6a4d24

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

clients/lsp-volar.el

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,24 @@
4141
:link '(url-link "https://github.com/vuejs/language-tools")
4242
:package-version '(lsp-mode . "9.0.0"))
4343

44-
(defcustom lsp-volar-take-over-mode t
44+
(defcustom lsp-volar-take-over-mode nil
4545
"Enable Take Over Mode."
4646
:type 'boolean
4747
:group 'lsp-volar
4848
:package-version '(lsp-mode . "9.0.0"))
4949

50-
(defcustom lsp-volar-hybrid-mode nil
50+
(defcustom lsp-volar-hybrid-mode t
5151
"Enable Hybrid Mode."
5252
:type 'boolean
5353
:group 'lsp-volar
5454
:package-version '(lsp-mode . "9.0.1"))
5555

56+
(defcustom lsp-volar-as-add-on nil
57+
"Run volar LSP server alongside other LSP server(s)"
58+
:type 'boolean
59+
:group 'lsp-volar
60+
:package-version '(lsp-mode . "9.0.1"))
61+
5662
(defcustom lsp-volar-activate-file ".volarrc"
5763
"A file with a custom name placed in WORKSPACE-ROOT is used to force enable
5864
volar when there is no package.json in the WORKSPACE-ROOT."
@@ -125,6 +131,7 @@ in the WORKSPACE-ROOT."
125131
:activation-fn 'lsp-volar--activate-p
126132
:priority 0
127133
:multi-root nil
134+
:add-on? lsp-volar-as-add-on
128135
:server-id 'vue-semantic-server
129136
:initialization-options (lambda () (ht-merge (lsp-configuration-section "typescript")
130137
(lsp-configuration-section "vue")

0 commit comments

Comments
 (0)