refactor(solidity): no need for opts to be a function

This commit is contained in:
Folke Lemaitre
2025-10-20 11:24:28 +02:00
parent 2cd46d42ba
commit f4b08bb604

View File

@@ -26,17 +26,18 @@ return {
}, },
-- Formatter for Solidity -- Formatter for Solidity
{ {
"conform.nvim", "stevearc/conform.nvim",
opts = function(_, opts) optional = true,
opts.formatters_by_ft = opts.formatters_by_ft or {} opts = {
opts.formatters_by_ft.solidity = { "forge_fmt" } formatters_by_ft = {
solidity = { "forge_fmt" },
opts.formatters = { },
formatters = {
forge_fmt = { forge_fmt = {
command = "forge", command = "forge",
args = { "fmt" }, args = { "fmt" },
}, },
} },
end, },
}, },
} }