Skip to content

Commit

Permalink
fix(pack): make sure custom treesitter parsers correctly handle all
Browse files Browse the repository at this point in the history
… setting
  • Loading branch information
mehalter committed Sep 26, 2024
1 parent 36018ab commit c2d1a80
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lua/astrocommunity/pack/blade/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ return {
filetype = "blade",
}

opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "blade" })
if opts.ensure_installed ~= "all" then
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "blade" })
end
end,
},
{
Expand Down
4 changes: 3 additions & 1 deletion lua/astrocommunity/pack/haxe/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ return {
filetype = "haxe",
}

opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "haxe" })
if opts.ensure_installed ~= "all" then
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "haxe" })
end
end,
},
}
4 changes: 3 additions & 1 deletion lua/astrocommunity/pack/pkl/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ return {
used_by = { "pcf" },
}

opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "pkl" })
if opts.ensure_installed ~= "all" then
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "pkl" })
end
end,
},
},
Expand Down

0 comments on commit c2d1a80

Please sign in to comment.