From f4b08bb6044f57164efa5052ef51ff958672f524 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 20 Oct 2025 11:24:28 +0200 Subject: [PATCH] refactor(solidity): no need for opts to be a function --- lua/lazyvim/plugins/extras/lang/solidity.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/solidity.lua b/lua/lazyvim/plugins/extras/lang/solidity.lua index cbbc7b83..898ac076 100644 --- a/lua/lazyvim/plugins/extras/lang/solidity.lua +++ b/lua/lazyvim/plugins/extras/lang/solidity.lua @@ -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, + }, + }, }, }