Skip to content

Commit

Permalink
types: LuaLS can't infer type information from unpack
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc authored Dec 8, 2023
1 parent f4eaf18 commit 1d80329
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/oil/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d80329

Please sign in to comment.