You need the tree-sitter CLI. On Arch, install tree-sitter.
- edit
grammar.js tree-sitter generatetree-sitter test
You can use tree-sitter parse <file> and tree-sitter highlight <file> after
regenerating.
For a working neovim integration you need to install this grammar with
:TSInstall vala
And you need to install the vala.vim plugin to recognize the filetype.
For vim-plug this would be:
Plug 'vala-lang/vala.vim'
Then install with
:PlugUpdate
For other plugin mangers consider the install steps will be different.