This commit is contained in:
Walter Jenkins 2025-04-16 08:39:09 -05:00
parent 5bdde24dfb
commit dd1d1bb6e9
49 changed files with 2444 additions and 1322 deletions

17
lua/plugins/conform.lua Normal file
View file

@ -0,0 +1,17 @@
return {
{
"stevearc/conform.nvim",
config = function()
require("conform").setup({
formatters_by_ft = {
templ = { "templ", "prettier" }, -- Use templ first, then Prettier for embedded content
},
format_on_save = {
timeout_ms = 500,
lsp_fallback = true,
},
})
end,
event = { "BufReadPre", "BufNewFile" }, -- Load only when opening a file
}
}