return { "stevearc/conform.nvim", opts = {}, config = function() require("conform").setup({ formatters_by_ft = { lua = { "stylua" }, python = { "isort", "ruff_format" }, javascript = { "prettier" }, typescript = { "prettier" }, javascriptreact = { "prettier" }, typescriptreact = { "prettier" }, css = { "prettier" }, html = { "prettier" }, json = { "prettier" }, yaml = { "prettier" }, }, }) vim.api.nvim_set_keymap( "n", "f", ":lua require('conform').format()", { noremap = true, silent = true } ) end, keys = "f", -- Optionally specify here to load the plugin on this keypress }