From cc8be33e9cfb0da2f87a0b8c17dccd1f63aa3ec5 Mon Sep 17 00:00:00 2001 From: Abhijeet Srivastava Date: Wed, 29 Mar 2023 11:48:51 +0000 Subject: [PATCH] Do not make a change to table.unpack --- lua/astrocommunity/pack/java/java.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lua/astrocommunity/pack/java/java.lua b/lua/astrocommunity/pack/java/java.lua index f38dd58ea..1818b2221 100644 --- a/lua/astrocommunity/pack/java/java.lua +++ b/lua/astrocommunity/pack/java/java.lua @@ -1,8 +1,5 @@ local utils = require "astrocommunity.utils" --- 5.1 lua compatibility -table.unpack = table.unpack or unpack - return { { "nvim-treesitter/nvim-treesitter", @@ -113,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"