nvim-config/lua/configs/conform.lua

16 lines
288 B
Lua

local options = {
formatters_by_ft = {
lua = { "stylua" },
bash = { "shfmt" },
sh = { "shfmt" },
markdown = { "markdownlint" },
yaml = { "yamlfmt" },
},
format_on_save = {
timeout_ms = 500,
lsp_fallback = true,
},
}
require("conform").setup(options)