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