https://github.com/oxy2dev/tree-sitter-vhs
Tree-sitter grammar for the CLI video recorder(.tape files)
https://github.com/oxy2dev/tree-sitter-vhs
Last synced: about 1 month ago
JSON representation
Tree-sitter grammar for the CLI video recorder(.tape files)
- Host: GitHub
- URL: https://github.com/oxy2dev/tree-sitter-vhs
- Owner: OXY2DEV
- License: mit
- Created: 2025-03-02T12:50:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-14T01:30:28.000Z (8 months ago)
- Last Synced: 2026-03-05T04:12:47.145Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 104 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-sitter-vhs
[![CI][ci]](https://github.com/OXY2DEV/tree-sitter-vhs/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[Tree-sitter](https://github.com/tree-sitter/tree-sitter) grammar for the CLI video recorder.
[ci]: https://img.shields.io/github/actions/workflow/status/OXY2DEV/tree-sitter-vhs/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
## 📥 Installation
### 💡 nvim-treesitter
Now, put this in your `nvim-treesitter` config,
```lua
local parser_configs = require("nvim-treesitter.parsers").get_parser_configs();
parser_configs.vhs = {
install_info = {
url = "https://github.com/OXY2DEV/tree-sitter-vhs",
files = { "src/parser.c" },
branch = "main",
},
}
```
Now, quit & open Neovim and run this command,
```vim
:TSInstall vhs
```
### 💡 manual
1. Install the `tree-sitter` CLI tool.
2. Clone the repository in your machine and `cd` into it.
3. Run `tree-sitter build`(if it tells you to install dependencies then you should install them and retry).
4. Copy the `vhs.so` file to `~/.config/nvim/parser/`.
## 💥 Syntax highlighting
To get syntax highlighting you need to copy the `queries/highlights.scm` to `~/.config/nvim/queries/vhs/`.