use biome instead of prettier for conform
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user