mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-03-10 09:27:25 +00:00
refactor(solidity): no need for opts to be a function
This commit is contained in:
@@ -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,
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user