Configuration
Place lucisv.toml or .lucisv.toml beside your project. Every key is optional.
line-length = 100indent = 2exclude = ["*_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.
Discovery
Section titled “Discovery”For each input, lucisv searches upward from that path’s directory:
- Use
lucisv.tomlif present. - Otherwise use
.lucisv.tomlif present. - Stop after checking a directory that contains
.git. - 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.
Strict parsing
Section titled “Strict parsing”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.
Editor settings
Section titled “Editor settings”| 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.