Skip to content

Commit

Permalink
feat(pack): Add pack for justfiles (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzaaft committed Dec 10, 2023
1 parent 760af5d commit acd48ae
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/pack/just/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Just language pack

This plugin does the following:

- Adds `just` Treesitter parser: <https://github.com/IndianBoy42/tree-sitter-just>
17 changes: 17 additions & 0 deletions lua/astrocommunity/pack/just/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
return {
"nvim-treesitter/nvim-treesitter",
optional = true,
dependencies = {
{
"IndianBoy42/tree-sitter-just",
config = function()
require("nvim-treesitter.parsers").get_parser_configs().just = {
install_info = { url = vim.fn.stdpath "data" .. "/lazy/tree-sitter-just", files = { "src/parser.c" } },
files = { "src/parser.c", "src/scanner.cc" },
branch = "main",
-- use_makefile = true -- this may be necessary on MacOS (try if you see compiler errors)
}
end,
},
},
}

0 comments on commit acd48ae

Please sign in to comment.