Files
2024-07-03 01:50:26 +02:00

21 lines
516 B
Lua

return {
'stevearc/conform.nvim',
config = function()
require("conform").setup({
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_fallback = true,
},
formatters_by_ft = {
lua = { "stylua" },
-- Conform will run multiple formatters sequentially
python = { "black" },
-- Use a sub-list to run only the first available formatter
javascript = { "prettier" },
typescript = { "prettier" }
},
})
end
}