From 42bc2960a51a5749c266c28bc39ecea60e62201d Mon Sep 17 00:00:00 2001 From: Pablu Date: Fri, 23 Jan 2026 15:53:58 +0100 Subject: [PATCH] Add blank lines to djlint --- lua/plugins/conform.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua index 073b744..c10e6fa 100644 --- a/lua/plugins/conform.lua +++ b/lua/plugins/conform.lua @@ -1,7 +1,9 @@ return { "stevearc/conform.nvim", config = function() - require("conform").setup { + local conform = require("conform") + + conform.setup { formatters_by_ft = { lua = { "stylua" }, python = { "isort", "black", lsp_format = "fallback" }, @@ -12,5 +14,9 @@ return { lsp_format = "fallback" } } + + conform.formatters.djlint = { + append_args = { "--max-blank-lines", "5" } + } end }