Skip to content

Commit

Permalink
Do not make a change to table.unpack
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeetsrivastava committed Mar 29, 2023
1 parent caff1ae commit cc8be33
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/astrocommunity/pack/java/java.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
local utils = require "astrocommunity.utils"

-- 5.1 lua compatibility
table.unpack = table.unpack or unpack

return {
{
"nvim-treesitter/nvim-treesitter",
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit cc8be33

Please sign in to comment.