return { "stevearc/conform.nvim", event = { "BufReadPre", "BufNewFile" }, config = function() local conform = require("conform") local wk = require("which-key") conform.setup({ formatters_by_ft = { markdown = { "prettier" }, python = { "black" }, lua = { "stylua" }, }, format_on_save = { lsp_fallback = true, async = false, timeout_ms = 2500, }, }) wk.add({ { "l", group = "lsp", icon = "" }, { "lf", function() conform.format({ lsp_fallback = true, async = false, timeout_ms = 1000 }) end, desc = "Format file", icon = "󰛖", }, }) end, }