Skip to content

Commit aa20d45

Browse files
authored
feat(svelte): add 'typescript-svelte-plugin' in vtsls globalPlugins (#1685)
fix(vtsls): adding 'typescript-svelte-plugin' in vtsls globalPlugins
1 parent 950f8e6 commit aa20d45

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

lua/astrocommunity/pack/svelte/init.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,27 @@ return {
1818
},
1919
{
2020
"AstroNvim/astrolsp",
21+
optional = true,
2122
---@type AstroLSPOpts
2223
opts = {
2324
---@diagnostic disable: missing-fields
2425
config = {
26+
vtsls = {
27+
settings = {
28+
vtsls = {
29+
tsserver = {
30+
globalPlugins = {
31+
{
32+
name = "typescript-svelte-plugin",
33+
location = vim.fn.expand "$MASON/packages/svelte-language-server/node_modules/typescript-svelte-plugin",
34+
configNamespace = "typescript",
35+
enableForWorkspaceTypeScriptVersions = true,
36+
},
37+
},
38+
},
39+
},
40+
},
41+
},
2542
svelte = {
2643
settings = {
2744
typescript = {

0 commit comments

Comments
 (0)