remove leading space on hint args (#180)

This commit is contained in:
Tai Groot 2022-07-27 02:59:05 -07:00 committed by GitHub
parent 3bdd56b1c0
commit f378f7ffa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ end
if not vim.tbl_isempty(param_hints) and config.show_parameter_hints then
virt_text = virt_text .. config.parameter_hints_prefix .. "("
for i, value_inner_inner in ipairs(param_hints) do
virt_text = virt_text .. value_inner_inner:sub(1, -2)
virt_text = virt_text .. value_inner_inner:sub(2, -2)
if i ~= #param_hints then
virt_text = virt_text .. ", "
end