blob: 6386f274735060478d3cc9e52f501530d12e986f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
return {
"stevearc/conform.nvim",
config = function()
local conform = require("conform")
conform.setup {
formatters_by_ft = {
lua = { "stylua" },
python = { "isort", "black", "ruff", lsp_format = "fallback" },
gotmpl = { "djlint" }
},
format_on_save = {
timeout_ms = 500,
lsp_format = "fallback"
}
}
conform.formatters.djlint = {
append_args = { "--max-blank-lines", "5" }
}
end
}
|