fix: use specific formatter for templ files
This commit is contained in:
@@ -3,16 +3,15 @@ return {
|
|||||||
lazy = false,
|
lazy = false,
|
||||||
opts = {
|
opts = {
|
||||||
notify_on_error = true,
|
notify_on_error = true,
|
||||||
-- formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
-- svelte = { "prettier" },
|
templ = { "templ" },
|
||||||
-- vue = { "prettier" },
|
},
|
||||||
-- },
|
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
lsp_fallback = true,
|
lsp_fallback = true,
|
||||||
timeout_ms = 1500,
|
timeout_ms = 1500,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
local plug = require('conform')
|
local plug = require('conform')
|
||||||
plug.setup(opts)
|
plug.setup(opts)
|
||||||
end,
|
end,
|
||||||
Reference in New Issue
Block a user