Skip to content

Commit 4a0aec0

Browse files
authored
lsp-volar: add hybridMode (#4426)
1 parent 6ec1bc5 commit 4a0aec0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clients/lsp-volar.el

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@
4747
:group 'lsp-volar
4848
:package-version '(lsp-mode . "9.0.0"))
4949

50+
(defcustom lsp-volar-hybrid-mode nil
51+
"Enable Hybrid Mode."
52+
:type 'boolean
53+
:group 'lsp-volar
54+
:package-version '(lsp-mode . "9.0.1"))
55+
5056
(defcustom lsp-volar-activate-file ".volarrc"
5157
"A file with a custom name placed in WORKSPACE-ROOT is used to force enable
5258
volar when there is no package.json in the WORKSPACE-ROOT."
@@ -86,6 +92,9 @@
8692
(lsp-volar-get-typescript-tsdk-path)))
8793
t)))
8894

95+
(lsp-register-custom-settings
96+
'(("vue.hybridMode" lsp-volar-hybrid-mode t)))
97+
8998
(defun lsp-volar--vue-project-p (workspace-root)
9099
"Check if the `Vue' package is present in the package.json file
91100
in the WORKSPACE-ROOT."
@@ -118,6 +127,7 @@ in the WORKSPACE-ROOT."
118127
:multi-root nil
119128
:server-id 'vue-semantic-server
120129
:initialization-options (lambda () (ht-merge (lsp-configuration-section "typescript")
130+
(lsp-configuration-section "vue")
121131
(ht ("serverMode" 0)
122132
("diagnosticModel" 1)
123133
("textDocumentSync" 2))))

0 commit comments

Comments
 (0)