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 { return {
{ {
"stevearc/conform.nvim", "stevearc/conform.nvim",
opts = function() opts = {
return { formatters_by_ft = {
formatters_by_ft = { lua = { "stylua" },
lua = { "stylua" }, c = { "clang_format" },
c = { "clang_format" }, cs = { "csharpier" },
cs = { "csharpier" }, javascript = { "biome", "biome-organize-imports" },
javascript = { "prettierd" }, javascriptreact = { "biome", "biome-organize-imports" },
javascriptreact = { "prettierd" }, typescript = { "biome", "biome-organize-imports" },
typescript = { "prettierd" }, typescriptreact = { "biome", "biome-organize-imports" },
typescriptreact = { "prettierd" }, css = { "biome", "biome-organize-imports" },
css = { "prettierd" }, svelte = { "biome", "biome-organize-imports" },
svelte = { "prettier" }, vue = { "biome", "biome-organize-imports" },
vue = { "prettier" }, svelteress = { "biome", "biome-organize-imports" },
svelteress = { "prettier" }, json = { "biome", "biome-organize-imports" },
json = { "prettierd" }, dart = { "dart_format" },
dart = { "dart_format" }, yaml = { "yamlfmt" },
yaml = { "yamlfmt" }, },
}, },
}
end,
config = function(plugin, opts) config = function(plugin, opts)
local conform = require("conform") local conform = require("conform")
conform.setup(opts) conform.setup(opts)