diff --git a/lua/plugins/format.lua b/lua/plugins/conform.lua similarity index 64% rename from lua/plugins/format.lua rename to lua/plugins/conform.lua index 74e0fb8..affde11 100644 --- a/lua/plugins/format.lua +++ b/lua/plugins/conform.lua @@ -3,16 +3,15 @@ return { lazy = false, opts = { notify_on_error = true, - -- formatters_by_ft = { - -- svelte = { "prettier" }, - -- vue = { "prettier" }, - -- }, + formatters_by_ft = { + templ = { "templ" }, + }, format_on_save = { lsp_fallback = true, timeout_ms = 1500, }, }, - config = function(_, opts) + config = function(_, opts) local plug = require('conform') plug.setup(opts) end,