File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 47
47
:group 'lsp-volar
48
48
:package-version '(lsp-mode . " 9.0.0" ))
49
49
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
+
50
56
(defcustom lsp-volar-activate-file " .volarrc"
51
57
" A file with a custom name placed in WORKSPACE-ROOT is used to force enable
52
58
volar when there is no package.json in the WORKSPACE-ROOT."
86
92
(lsp-volar-get-typescript-tsdk-path)))
87
93
t )))
88
94
95
+ (lsp-register-custom-settings
96
+ '((" vue.hybridMode" lsp-volar-hybrid-mode t )))
97
+
89
98
(defun lsp-volar--vue-project-p (workspace-root )
90
99
" Check if the `Vue' package is present in the package.json file
91
100
in the WORKSPACE-ROOT."
@@ -118,6 +127,7 @@ in the WORKSPACE-ROOT."
118
127
:multi-root nil
119
128
:server-id 'vue-semantic-server
120
129
:initialization-options (lambda () (ht-merge (lsp-configuration-section " typescript" )
130
+ (lsp-configuration-section " vue" )
121
131
(ht (" serverMode" 0 )
122
132
(" diagnosticModel" 1 )
123
133
(" textDocumentSync" 2 ))))
You can’t perform that action at this time.
0 commit comments