return { "stevearc/conform.nvim", event = { "BufWritePre" }, cmd = { "ConformInfo" }, keys = { { "fm", function() require("conform").format({ async = true }) end, desc = "Format buffer", }, }, opts = { formatters_by_ft = { javascript = { "prettier" }, typescript = { "prettier" }, javascriptreact = { "prettier" }, typescriptreact = { "prettier" }, json = { "prettier" }, html = { "prettier" }, css = { "prettier" }, markdown = { "mdformat" }, yaml = { "prettier" }, }, format_on_save = { timeout_ms = 500, lsp_fallback = true, }, }, }