nvim-config/lua/configs/conform.lua

20 lines
365 B
Lua
Raw Normal View History

2024-04-08 09:26:41 +00:00
local options = {
formatters_by_ft = {
2024-04-15 09:32:16 +00:00
bash = { "shfmt" },
css = { "prettier" },
json = { "prettier" },
html = { "prettier" },
lua = { "stylua" },
2024-04-23 14:18:38 +00:00
markdown = { "prettier" },
sh = { "shfmt" },
yaml = { "prettier" },
2024-04-08 09:26:41 +00:00
},
2024-04-15 09:32:16 +00:00
format_on_save = {
timeout_ms = 500,
lsp_fallback = true,
},
2024-04-08 09:26:41 +00:00
}
require("conform").setup(options)