Skip to content

Instantly share code, notes, and snippets.

@azdanov
Created January 2, 2025 09:43
Show Gist options
  • Save azdanov/6c08adaae2b7f1a3c4296b31287a751f to your computer and use it in GitHub Desktop.
Save azdanov/6c08adaae2b7f1a3c4296b31287a751f to your computer and use it in GitHub Desktop.
return {
{
"stevearc/conform.nvim",
optional = true,
opts = {
formatters_by_ft = {
["gotmpl"] = { "djlint" },
},
formatters = {
djlint = {
args = { "--reformat", "-" },
cwd = require("conform.util").root_file({
".djlintrc",
"djlint.toml",
}),
},
},
},
},
{
"mfussenegger/nvim-lint",
opts = {
linters_by_ft = {
gotmpl = { "djlint" },
},
},
},
{
"williamboman/mason.nvim",
opts = {
ensure_installed = { "djlint" },
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment