Add blank lines to djlint

This commit is contained in:
Pablu
2026-01-23 15:53:58 +01:00
parent d9485a9253
commit 42bc2960a5

View File

@@ -1,7 +1,9 @@
return { return {
"stevearc/conform.nvim", "stevearc/conform.nvim",
config = function() config = function()
require("conform").setup { local conform = require("conform")
conform.setup {
formatters_by_ft = { formatters_by_ft = {
lua = { "stylua" }, lua = { "stylua" },
python = { "isort", "black", lsp_format = "fallback" }, python = { "isort", "black", lsp_format = "fallback" },
@@ -12,5 +14,9 @@ return {
lsp_format = "fallback" lsp_format = "fallback"
} }
} }
conform.formatters.djlint = {
append_args = { "--max-blank-lines", "5" }
}
end end
} }