working?
This commit is contained in:
parent
83f02dbde7
commit
5bdc9a9944
7 changed files with 31 additions and 8 deletions
|
|
@ -4,7 +4,11 @@ return {
|
|||
config = function()
|
||||
require("conform").setup({
|
||||
formatters_by_ft = {
|
||||
templ = { "templ", "prettier" }, -- Use templ first, then Prettier for embedded content
|
||||
-- Disable formatters for .templ files
|
||||
templ = {},
|
||||
|
||||
-- Add your other filetype configs here as needed
|
||||
-- e.g., go = { "gofmt" },
|
||||
},
|
||||
format_on_save = {
|
||||
timeout_ms = 500,
|
||||
|
|
@ -12,6 +16,6 @@ return {
|
|||
},
|
||||
})
|
||||
end,
|
||||
event = { "BufReadPre", "BufNewFile" }, -- Load only when opening a file
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue