require("conform").setup({ formatters = { ruff_isort = { command = "ruff", args = { "check", "--select", "I", "--fix", "--stdin-filename", "$FILENAME" }, stdin = true, }, ocamlformat = { prepend_args = { "--if-then-else", "vertical", "--break-cases", "fit-or-vertical", "--type-decl", "sparse", }, }, }, formatters_by_ft = { lua = { "stylua" }, python = { "ruff_isort", "ruff_format" }, go = { "gofumpt", "goimports" }, nix = { "alejandra", "nixpkgs_fmt" }, javascript = { "biome" }, typescript = { "biome" }, --ruby = { "rubocop" }, zig = { "zig fmt", "zigimports" }, --haskell = { "fourmolu" }, typst = { "typstyle" }, ocaml = { "ocamlformat" }, }, format_on_save = { -- These options will be passed to conform.format() timeout_ms = 6000, lsp_fallback = true, }, })