From 1d80329192a00c364400cfbe30872effc4acc54a Mon Sep 17 00:00:00 2001 From: Steven Arcangeli <506791+stevearc@users.noreply.github.com> Date: Thu, 7 Dec 2023 21:32:46 -0800 Subject: [PATCH] types: LuaLS can't infer type information from unpack --- lua/oil/util.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/oil/util.lua b/lua/oil/util.lua index 6649f435..dc12d7f5 100644 --- a/lua/oil/util.lua +++ b/lua/oil/util.lua @@ -294,7 +294,8 @@ M.render_table = function(lines, col_width) for i, chunk in ipairs(cols) do local text, hl if type(chunk) == "table" then - text, hl = unpack(chunk) + text = chunk[1] + hl = chunk[2] else text = chunk end