Skip to content

Commit

Permalink
fix(pack): improve compatibility of table.unpack function (#107)
Browse files Browse the repository at this point in the history
LuaJit 5.1 doesn't have table.unpack function

- found this fix from hrsh7th/nvim-cmp#1017
- this fix is working fine in my local
  • Loading branch information
abhijeetsrivastava authored Mar 29, 2023
1 parent d971045 commit 52b1da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/astrocommunity/pack/java/java.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ return {
.. "/extension/server/com.microsoft.java.debug.plugin-*.jar"
),
-- unpack remaining bundles
table.unpack(
(table.unpack or unpack)(
vim.split(
vim.fn.glob(
require("mason-registry").get_package("java-test"):get_install_path() .. "/extension/server/*.jar"
Expand Down

0 comments on commit 52b1da3

Please sign in to comment.