Created
January 2, 2025 09:43
-
-
Save azdanov/6c08adaae2b7f1a3c4296b31287a751f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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