Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

viset.el

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.

Requirements

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.

Install from Git

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.

Development

The locked Nix environment pins Emacs 30.1 and the three grammar libraries:

nix develop --command make check

About

Emacs Tree-sitter highlighting for Viset capture files

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages