Skip to content

Commit

Permalink
feat(svelte): enable inlay hints by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed May 28, 2024
1 parent a58ec9a commit 334e5d1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions lua/astrocommunity/pack/svelte/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 334e5d1

Please sign in to comment.