Skip to content

Commit

Permalink
fix(just): Fix buggy just pack
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzaaft committed Dec 28, 2023
1 parent 2744133 commit c43f82e
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions lua/astrocommunity/pack/just/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,19 @@ vim.filetype.add {
}

return {
"nvim-treesitter/nvim-treesitter",
optional = true,
opts = function(_, opts)
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()

parser_config.just = {
install_info = {
url = "https://github.com/IndianBoy42/tree-sitter-just",
files = { "src/parser.c", "src/scanner.cc" },
branch = "main",
},
filetype = "just",
maintainers = { "@IndianBoy42" },
}

opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "just")
end,
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
-- add more things to the ensure_installed table protecting against community packs modifying it
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, {
"toml",
"rust",
"dockerfile",
})
end,
},
{
"IndianBoy42/tree-sitter-just",
opts = {},
},
}

0 comments on commit c43f82e

Please sign in to comment.