diff --git a/lua/astrocommunity/pack/svelte/init.lua b/lua/astrocommunity/pack/svelte/init.lua index e7fede558..8a90ef74a 100644 --- a/lua/astrocommunity/pack/svelte/init.lua +++ b/lua/astrocommunity/pack/svelte/init.lua @@ -15,6 +15,41 @@ return { opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "svelte" }) end, }, + { + "AstroNvim/astrolsp", + ---@type AstroLSPOpts + opts = { + ---@diagnostic disable: missing-fields + config = { + svelte = { + settings = { + typescript = { + updateImportsOnFileMove = { enabled = "always" }, + inlayHints = { + parameterNames = { enabled = "all" }, + parameterTypes = { enabled = true }, + variableTypes = { enabled = true }, + propertyDeclarationTypes = { enabled = true }, + functionLikeReturnTypes = { enabled = true }, + enumMemberValues = { enabled = true }, + }, + }, + javascript = { + updateImportsOnFileMove = { enabled = "always" }, + inlayHints = { + parameterNames = { enabled = "literals" }, + parameterTypes = { enabled = true }, + variableTypes = { enabled = true }, + propertyDeclarationTypes = { enabled = true }, + functionLikeReturnTypes = { enabled = true }, + enumMemberValues = { enabled = true }, + }, + }, + }, + }, + }, + }, + }, { "jay-babu/mason-nvim-dap.nvim", optional = true,