mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
feat(svelte): with prettier & svelte extra, prettier will be enabled when prettier-plugin-svelte is available
This commit is contained in:
parent
214f5fccdf
commit
945143a34e
1 changed files with 10 additions and 0 deletions
|
@ -54,4 +54,14 @@ return {
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"conform.nvim",
|
||||||
|
opts = function(_, opts)
|
||||||
|
if LazyVim.has_extra("formatting.prettier") then
|
||||||
|
opts.formatters_by_ft = opts.formatters_by_ft or {}
|
||||||
|
opts.formatters_by_ft.svelte = { "prettier" }
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue