From f378f7ffa211eda0aef5900089b720be87702aba Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Wed, 27 Jul 2022 02:59:05 -0700 Subject: [PATCH] remove leading space on hint args (#180) --- lua/go/inlay.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/go/inlay.lua b/lua/go/inlay.lua index 30ce352..5f6d4d5 100644 --- a/lua/go/inlay.lua +++ b/lua/go/inlay.lua @@ -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