Added rustywind
This commit is contained in:
@@ -12,19 +12,21 @@ return {
|
|||||||
|
|
||||||
function dprintOrPrettier()
|
function dprintOrPrettier()
|
||||||
if checkPrettierConfig() then
|
if checkPrettierConfig() then
|
||||||
return { "prettier" }
|
return "prettier"
|
||||||
else
|
else
|
||||||
return { "dprint" }
|
return "dprint"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
require("conform").setup({
|
require("conform").setup({
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
javascript = dprintOrPrettier(),
|
javascript = { dprintOrPrettier() },
|
||||||
typescript = dprintOrPrettier(),
|
typescript = { dprintOrPrettier() },
|
||||||
json = dprintOrPrettier(),
|
javascriptreact = { "rustywind", dprintOrPrettier() },
|
||||||
markdown = dprintOrPrettier(),
|
typescriptreact = { "rustywind", dprintOrPrettier() },
|
||||||
|
json = { dprintOrPrettier() },
|
||||||
|
markdown = { dprintOrPrettier() },
|
||||||
},
|
},
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
timeout_ms = 500,
|
timeout_ms = 500,
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ return {
|
|||||||
"stylua",
|
"stylua",
|
||||||
"prettier",
|
"prettier",
|
||||||
"dprint",
|
"dprint",
|
||||||
|
"rustywind",
|
||||||
},
|
},
|
||||||
automatic_installation = true,
|
automatic_installation = true,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user