summaryrefslogtreecommitdiff
path: root/lua/plugins/conform.lua
blob: 4f9591497359f45871e4d7be8d1627bb50bb6d38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
return {
	{
		"stevearc/conform.nvim",
		opts = {
			formatters_by_ft = {
				lua = { "stylua" },
				markdown = { "mdformat" },
				python = { "ruff_fix", "ruff_format", "ruff_organize_imports" },
				sh = { "shfmt" },
				rust = { "rustfmt" },
			},
			format_on_save = { timeout_ms = 500, lsp_format = "fallback" },
		},
	},
}