feat: add svelte support and switch to oxfmt

This commit is contained in:
2026-07-14 17:53:25 +02:00
parent b8c72b20bd
commit ceeb9669f1
3 changed files with 17 additions and 14 deletions
@@ -14,7 +14,9 @@ require("lz.n").load({
},
},
after = function()
local prettier = { "prettierd", "prettier", stop_after_first = true }
-- Conform's built-in oxfmt formatter searches upwards for
-- node_modules/.bin/oxfmt before falling back to the wrapped binary.
local oxfmt = { "oxfmt" }
require("conform").setup({
notify_on_error = true,
@@ -30,17 +32,18 @@ require("lz.n").load({
end
end,
formatters_by_ft = {
javascript = prettier,
javascriptreact = prettier,
typescript = prettier,
typescriptreact = prettier,
json = prettier,
jsonc = prettier,
css = prettier,
scss = prettier,
less = prettier,
html = prettier,
markdown = prettier,
javascript = oxfmt,
javascriptreact = oxfmt,
typescript = oxfmt,
typescriptreact = oxfmt,
json = oxfmt,
jsonc = oxfmt,
css = oxfmt,
scss = oxfmt,
less = oxfmt,
html = oxfmt,
markdown = oxfmt,
svelte = oxfmt,
lua = { "stylua" },
python = { "ruff_fix", "ruff_format", "ruff_organize_imports" },
toml = { "taplo" },