Add blank lines to djlint
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user