treebox installs curated tree-sitter grammars.
The core functionality here is very similar to any neovim plugin that helps curate tree-sitter grammars. This is just a way of managing them independently of neovim.
cargo install --git https://github.com/martindur/treeboxTreebox also expects these tools to be available:
git
tree-sitter
cc, gcc, or clang
Run treebox doctor to check the local environment.
treebox list
treebox add typescript html cssAdd Treebox to your Neovim runtime path:
vim.opt.runtimepath:prepend(vim.env.TREEBOX_OUT or vim.fn.expand('~/.local/share/treebox'))
vim.api.nvim_create_autocmd('FileType', {
callback = function()
pcall(vim.treesitter.start)
end,
})Installed files are written to:
~/.local/share/treebox
You can override that with TREEBOX_OUT or --out.
treebox list
treebox list --installed
treebox add <lang...>
treebox remove <lang...>
treebox update [lang...]
treebox status
treebox doctorTreebox uses a bundled snapshot of the registry maintained by
neovim-treesitter.
Thanks for making such a registry available in the first place!
Code was written with the help of an LLM. Most of it has been checked by using the tool rather than by carefully reading every line of code.
I am not very strong in Rust, so use at the mercy of our AI lords.