Use djlint as a formatter for conform
This commit is contained in:
parent
b058edec54
commit
aaf545a1a9
1 changed files with 16 additions and 0 deletions
16
home/dot_config/nvim/lua/plugins/formatters.lua
Normal file
16
home/dot_config/nvim/lua/plugins/formatters.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
optional = true,
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
["htmldjango"] = { "djlint" },
|
||||
},
|
||||
formatters = {
|
||||
djlint = {
|
||||
args = { "--reformat", "--profile=django", "-" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue