viset-ts-mode provides syntax highlighting for Viset
capture files in Emacs 30.1 or newer. It derives from the built-in lua-ts-mode and adds:
- TOML highlighting for the entire content of any Lua comment containing
# viset; and - JavaScript highlighting for string arguments passed directly to
viset.javascript.
This package classifies syntax only. It does not run Viset, execute captures, install grammars, provide completion, or provide embedded-language diagnostics.
Emacs must be built with Tree-sitter support. Compatible lua, toml, and javascript grammar
libraries must already be installed and loadable. Run M-x viset-ts-mode-check-dependencies for a
diagnostic; the command does not change your grammar configuration.
In Emacs 30.1 or newer:
(package-vc-install
'(viset-ts-mode :url "https://github.com/getviset/viset.el"))A visited .lua file automatically uses viset-ts-mode only when the Lua syntax tree contains
# viset in comment content. Marker-free Lua files retain the user's normal mode. You can also use
M-x viset-ts-mode explicitly.
The locked Nix environment pins Emacs 30.1 and the three grammar libraries:
nix develop --command make check