Skip to content

Configuration

Place lucisv.toml or .lucisv.toml beside your project. Every key is optional.

lucisv.toml
line-length = 100
indent = 2
exclude = ["*_gen.sv", "build"]
filelist = "rtl/files.f"
Key Type Default Valid values Used by
line-length integer 100 40..400 CLI and server
indent integer 2 1..8 CLI and server
exclude string array [] path patterns CLI walk and server index
filelist string — EDA .f path server index

filelist does not change what a bare lucisv rtl/ formats. The CLI reads a filelist only when -f names one.

For each input, lucisv searches upward from that path’s directory:

  1. Use lucisv.toml if present.
  2. Otherwise use .lucisv.toml if present.
  3. Stop after checking a directory that contains .git.
  4. Otherwise continue to the filesystem root.

The first file wins; configuration files are never merged. CLI options override file values per setting. Exclusions are the exception: configuration and CLI patterns are combined.

Unknown keys, out-of-range numbers, invalid values, tables, multiline arrays, and string escapes are rejected. A bad configuration is an error for the CLI, preventing partial writes. In an editor, the server reports the problem and falls back to the next available setting.

Setting Default Purpose
lucisv.serverPath lucisv-server Executable name or absolute path
lucisv.rainbowBeginEnd true Color matching block delimiters by depth
lucisv.inlineTemplates true Offer structural ghost-text completions
lucisv.formatOnSave false Server-driven save formatting for clients that need it
lucisv.lineLength null Editor fallback for maximum width
lucisv.indent null Editor fallback for indentation
lucisv.exclude [] Extra workspace index exclusions
lucisv.filelist "" Filelist that defines the workspace index

Project configuration takes priority over editor settings. For regular VS Code format-on-save, use editor.formatOnSave; do not also enable lucisv.formatOnSave.

Successful “already formatted” verdicts are cached under .lucisv_cache/. Entries are keyed by file, content hash, line length, indentation, and lucisv version. Files that would change or fail are never cached. Use --no-cache to disable reads and writes or --cache-dir to relocate the store.