chore(conform): replace prettierd with biome
This commit is contained in:
parent
f73d54a868
commit
3c9ec34f96
1 changed files with 9 additions and 11 deletions
|
|
@ -3,13 +3,13 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
require("conform").setup({
|
require("conform").setup({
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
html = { "prettierd" },
|
html = { "biome" },
|
||||||
yaml = { "prettierd" },
|
yaml = { "biome" },
|
||||||
javascript = { "prettierd" },
|
javascript = { "biome" },
|
||||||
javascriptreact = { "prettierd" },
|
javascriptreact = { "biome" },
|
||||||
markdown = { "prettierd" },
|
markdown = { "biome" },
|
||||||
typescript = { "prettierd" },
|
typescript = { "biome" },
|
||||||
typescriptreact = { "prettierd" },
|
typescriptreact = { "biome" },
|
||||||
["*"] = { "trim_whitespace" },
|
["*"] = { "trim_whitespace" },
|
||||||
},
|
},
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
|
|
@ -17,11 +17,9 @@ return {
|
||||||
lsp_fallback = true,
|
lsp_fallback = true,
|
||||||
},
|
},
|
||||||
formatters = {
|
formatters = {
|
||||||
prettierd = {
|
biome = {
|
||||||
condition = function()
|
condition = function()
|
||||||
return vim.loop.fs_realpath(".prettierrc.js") ~= nil or
|
return vim.loop.fs_realpath("biome.json") ~= nil end,
|
||||||
vim.loop.fs_realpath(".prettierrc") ~= nil
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue