Skip to content

Commit

Permalink
feat:add params to goimports-reviser (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaiJinKen authored Sep 26, 2024
1 parent 01d9761 commit 73c1968
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/formatter/filetypes/go.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ function M.golines()
}
end

function M.goimports_reviser()
-- @param params:table
function M.goimports_reviser(params)
if params == nil or type(params) ~= "table" then
params = {}
end
return {
exe = "goimports-reviser",
args = params,
stdin = false,
}
end
Expand Down

0 comments on commit 73c1968

Please sign in to comment.