djlint and formatting improvements

This commit is contained in:
Christoph J. Scherr 2024-02-09 15:29:17 +01:00
parent c05a9c9c4d
commit c303f4a474
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
2 changed files with 7 additions and 10 deletions

View File

@ -410,7 +410,7 @@ M.edit = {
-- format with conform
["<leader>ff"] = {
function()
require("conform").format()
vim.lsp.buf.format()
end,
"format buffer",
},

View File

@ -580,15 +580,12 @@ local plugins = {
local nls = require "null-ls"
local builtins = nls.builtins
local sources = {
builtins.formatting.black,
builtins.formatting.fixjson,
builtins.formatting.golines,
builtins.formatting.shellharden,
builtins.formatting.sql_formatter,
builtins.diagnostics.mypy,
builtins.diagnostics.vint,
builtins.diagnostics.yamllint,
builtins.code_actions.shellcheck,
builtins.formatting.djlint.with {
filetypes = { "django", "jinja.html", "htmldjango", "tera", "html" },
},
builtins.diagnostics.djlint.with {
filetypes = { "django", "jinja.html", "htmldjango", "tera", "html" },
},
builtins.formatting.shfmt,
builtins.diagnostics.write_good.with {
diagnostics_postprocess = function(diagnostic)