fix(conform): replace formatters_by_ft with new 9.x version

This commit is contained in:
Oliver Ladner 2025-02-26 17:04:47 +01:00
commit cec95d7a0c

View file

@ -6,7 +6,8 @@ return {
config = function()
local conform = require("conform")
conform.setup({
formatters_by_ft = {
-- formatters_by_ft = {
formatters = {
javascript = { "prettier" },
typescript = { "prettier" },
javascriptreact = { "prettier" },
@ -22,6 +23,7 @@ return {
python = { "isort", "black" },
sh = { "shfmt" },
},
stop_after_first = false,
format_on_save = {
lsp_fallback = true,
async = false,