mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
refactor(solidity): no need for opts to be a function
This commit is contained in:
parent
2cd46d42ba
commit
f4b08bb604
1 changed files with 9 additions and 8 deletions
|
|
@ -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,
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue