working
This commit is contained in:
parent
5bdde24dfb
commit
dd1d1bb6e9
49 changed files with 2444 additions and 1322 deletions
17
lua/plugins/conform.lua
Normal file
17
lua/plugins/conform.lua
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue