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
{
"conform.nvim",
opts = function(_, opts)
opts.formatters_by_ft = opts.formatters_by_ft or {}
opts.formatters_by_ft.solidity = { "forge_fmt" }
opts.formatters = {
"stevearc/conform.nvim",
optional = true,
opts = {
formatters_by_ft = {
solidity = { "forge_fmt" },
},
formatters = {
forge_fmt = {
command = "forge",
args = { "fmt" },
},
}
end,
},
},
},
}