fix(nvim-vtsls): adding 'typescript-svelte-plugin' in vtsls globalPlugins
📑 Description
- Add
typescript-svelte-pluginas a global plugin for vtsls. Same as lazyvim/svelte.ts config - For the vue's config, I've removed the default empty setting for
globalPlugins = {},. Because of this if you hadcommunity.luaconfig like below wherepack.svelteis abovepack.vuethis would result intypescript-svelte-pluginnot being added.
-- lua/community.lua
---@type LazySpec
return {
"AstroNvim/astrocommunity",
{ import = "astrocommunity.pack.svelte" },
{ import = "astrocommunity.pack.vue" }
}
📖 Additional Information
How to verify:
git clone --depth 1 https://github.com/AstroNvim/template ~/.config/nvim-astro-demoNVIM_APPNAME=nvim-astro-demo nvim- Update the
community.luawith following content
-- lua/community.lua
---@type LazySpec
return {
"AstroNvim/astrocommunity",
-- you could also put the svelte below vue
{ import = "astrocommunity.pack.svelte" },
{ import = "astrocommunity.pack.vue" },
}
- Open a svelte project(or create new
npx sv create demo-svelte-app --template minimal --types ts - Open any
.tsfile, run:LspInfoand checkglobalPluginstable has thetypescript-svelte-pluginplugin
Review Checklist
Does this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist:
Proper conventional commit scoping:
-
If you are adding a new plugin, the scope would be the name of the category it is being added into. ex.
feat(utility): added noice.nvim plugin -
If you are modifying a pre-existing plugin or pack, the scope would be the name of the plugin folder. ex.
fix(noice-nvim): fix LSP handler error -
[x] Pull request title has the appropriate conventional commit type and scope where the scope is the name of the pre-existing directory in the project as described above
-
[x]
READMEis properly formatted and uses fenced in links with<url>unless they are inside a[title](url) -
[x] Entry returns a single plugin spec with the new plugin as the only top level spec (not applicable for recipes or packs).
-
[x] Proper usage of
optstable rather than setting things up with theconfigfunction. -
[x] Proper usage of
specstable for all specs that are not dependencies of a given plugin (not applicable for recipes or packs).
Removed your vue changes. Feel free to add that in a seperate PR.