tree-sitter-strdl
Tree-sitter parser for Strudel, a Tidal Cycles based live coding tool.
Usage
To install the parser in Neovim:
- Create a file
strudel-integration.lua in your ~/.config/nvim/lua/ directory:
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.strudel = {
install_info = {
url = "~/tree-sitter-strdl/", files = { "src/parser.c" }, branch = "main", generate_requires_npm = false, requires_generate_from_grammar = false, },
filetype = "strdl", }
vim.api.nvim_create_autocmd("BufRead", {
pattern = { "*.strdl", "*.strudel" },
callback = function()
vim.bo.filetype = "strdl"
end,
})
- On your
~/.config/nvim/init.lua:
require("strudel-integration")
Run the following to install the parsers schemas:
npm run local_install
Docs
Learning Resources