| Crates.io | tree-sitter-grug |
| lib.rs | tree-sitter-grug |
| version | 0.2.15 |
| created_at | 2025-09-05 01:40:11.154568+00 |
| updated_at | 2025-10-05 22:53:07.647901+00 |
| description | A tree sitter parser for grug |
| homepage | |
| repository | https://github.com/xijnim/tree-sitter-grug.git |
| max_upload_size | |
| id | 1824985 |
| size | 158,202 |
Example config for neovim
vim.api.nvim_create_autocmd("BufEnter", {
pattern = "*.grug",
callback = function()
vim.cmd("set filetype=grug")
vim.cmd("TSEnable highlight")
end,
})
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.grug = {
install_info = {
url = "<directory-where-the-parser-is>",
files = {"src/parser.c"},
branch = "main",
},
filetype = "grug",
}
Remember to also create queries/grug/highlights.scm in your runtime path (~/.config/nvim).
You can copy and paste it from this repo or symlink it.