Skip to content

Editor Support

alsi-lawr edited this page Jul 21, 2026 · 1 revision

Editor support

viset init keeps capture files as Lua and generates two files for Lua Language Server: .luarc.json and .viset/viset.d.lua. They provide Viset API completion and diagnostics without changing how a capture runs.

Neovim

Install getviset/viset.nvim with your usual plugin manager. With lazy.nvim:

{ "getviset/viset.nvim" }

No setup call is needed. The plugin requires:

  • Neovim 0.12 or newer
  • Tree-sitter parsers for Lua, TOML, and JavaScript

The plugin highlights TOML in Lua comments containing # viset, including the generated header, and JavaScript in strings passed directly to viset.javascript. On the first Lua buffer containing # viset in a Neovim session, missing required parsers produce one warning that lists them and points to :checkhealth viset; later affected buffers do not repeat the warning in that session.

Run :checkhealth viset to check the Neovim version and availability of every required parser.

Capture files remain trusted Lua programs when Viset runs them. viset.nvim does not execute capture files.

Clone this wiki locally