use biome instead of prettier for conform

This commit is contained in:
2025-12-12 19:54:11 +01:00
parent b4b06c0481
commit 5120a87995

View File

@@ -1,26 +1,24 @@
return {
{
"stevearc/conform.nvim",
opts = function()
return {
formatters_by_ft = {
lua = { "stylua" },
c = { "clang_format" },
cs = { "csharpier" },
javascript = { "prettierd" },
javascriptreact = { "prettierd" },
typescript = { "prettierd" },
typescriptreact = { "prettierd" },
css = { "prettierd" },
svelte = { "prettier" },
vue = { "prettier" },
svelteress = { "prettier" },
json = { "prettierd" },
dart = { "dart_format" },
yaml = { "yamlfmt" },
},
}
end,
opts = {
formatters_by_ft = {
lua = { "stylua" },
c = { "clang_format" },
cs = { "csharpier" },
javascript = { "biome", "biome-organize-imports" },
javascriptreact = { "biome", "biome-organize-imports" },
typescript = { "biome", "biome-organize-imports" },
typescriptreact = { "biome", "biome-organize-imports" },
css = { "biome", "biome-organize-imports" },
svelte = { "biome", "biome-organize-imports" },
vue = { "biome", "biome-organize-imports" },
svelteress = { "biome", "biome-organize-imports" },
json = { "biome", "biome-organize-imports" },
dart = { "dart_format" },
yaml = { "yamlfmt" },
},
},
config = function(plugin, opts)
local conform = require("conform")
conform.setup(opts)