nix-config/home/modules/nvim/config/lua/plugins/conform.lua
2025-04-09 18:40:28 +02:00

22 lines
562 B
Lua

return {
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
typescriptreact = { "prettierd" },
typescript = { "prettierd" },
javascript = { "prettierd" },
javascriptreact = { "prettierd" },
html = { "prettierd" },
css = { "prettierd" },
yaml = { "prettierd" },
markdown = { "prettierd" },
json = { "prettierd" },
lua = { "stylua" },
},
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 300,
lsp_format = "fallback",
},
},
}