stow_dotfiles/nvim2/.config/nvim/lua/plugins/conform.lua
Matthieu Fortin (Home/Maison) cbece4f200 I made leetle mistake
2025-05-09 06:37:27 -04:00

20 lines
763 B
Lua

return {
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
lua = { "stylua" },
-- Conform will run multiple formatters sequentially
python = { "isort", "black" },
-- You can customize some of the format options for the filetype (:help conform.format)
rust = { "rustfmt" },
-- Conform will run the first available formatter
javascript = { "prettierd", "prettier", stop_after_first = true },
typescript = { "prettierd", "prettier", stop_after_first = true },
},
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_format = "fallback",
},
},
}