fix: use specific formatter for templ files

This commit is contained in:
2025-05-07 09:31:00 +02:00
parent 33d03e523e
commit d2f2bab2c3

18
lua/plugins/conform.lua Normal file
View File

@@ -0,0 +1,18 @@
return {
'stevearc/conform.nvim',
lazy = false,
opts = {
notify_on_error = true,
formatters_by_ft = {
templ = { "templ" },
},
format_on_save = {
lsp_fallback = true,
timeout_ms = 1500,
},
},
config = function(_, opts)
local plug = require('conform')
plug.setup(opts)
end,
}