kevinhwang91 / nvim-hlslens

Hlsearch Lens for Neovim
BSD 3-Clause "New" or "Revised" License
769 stars 11 forks source link

Update Customize virtual text for Lua5.2 and greater #46

Closed CharlesChiuGit closed 2 years ago

CharlesChiuGit commented 2 years ago

Since table.unpack() is somehow not recognized by nvim, get the value via index instead.

CharlesChiuGit commented 2 years ago

@kevinhwang91 done, plz check.

kevinhwang91 commented 2 years ago

There're some places has unpack in the code base, I'm not sure that hlslens work for you after the patch.

CharlesChiuGit commented 2 years ago

Interesting, it seems like it's working fine after adjusting the setup config.

kevinhwang91 commented 2 years ago

You can simple run unpack = table.unpack in your init.lua to patch.