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"
[lint]select = ["no-tabs", "unused-signal"]ignore = ["module-filename"]
[lint.line-length]length = 120
[lint.signal-name-style]style_regex = "[a-z_0-9]+"| 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 |
[lint].select |
string array | defaults | rule names or severity classes | CLI |
[lint].ignore |
string array | [] |
rule names or severity classes | CLI |
[lint].waivers |
string array | [] |
external waiver files, resolved against this file’s directory (Verible’s format; see the linter guide) | CLI and editor |
[lint.<rule-name>] tables configure individual rules. The rule registry
validates option names, types, bounds, and patterns; lucisv check --rules-doc
lists every supported option and default. Configuring a rule’s options does
not enable a rule that is off by default.
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 other than [lint] and [lint.<rule>], and multiline arrays are rejected. This is a deliberate TOML subset. Top-level strings reject backslashes; per-rule strings retain backslashes literally for the pattern dialect and reject embedded quotes. They do not decode TOML string escapes. 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.verbose |
false |
Log request and lifecycle timing; changing it restarts the server |
lucisv.rainbowBeginEnd |
true |
Color matching block delimiters by depth |
lucisv.inlineTemplates |
true |
Offer structural ghost-text completions |
lucisv.inlineInstantiation |
true |
Offer indexed module instantiation ghost text |
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 |
lucisv.index.scope |
folder |
Index the configured folder or widen to the workspace |
lucisv.index.scopeDepth |
2 |
Parent-directory depth used by folder-scope indexing |
lucisv.index.maxFileSize |
1048576 |
Largest file, in bytes, admitted to the workspace index |
lucisv.index.logFiles |
true |
Log files skipped or rejected during indexing |
lucisv.index.persist |
true |
Reuse the disposable persistent semantic index |
lucisv.index.cachePath |
"" |
Override the persistent index location |
lucisv.largeFile.threshold |
4194304 |
Switch oversized open buffers to large-file mode |
lucisv.lint.select |
[] |
Replace the default lint rule set |
lucisv.lint.ignore |
[] |
Remove rules or severity classes from the selected or default set |
lucisv.lint.severity.error / .warning / .style |
true |
Enable each severity class |
lucisv.lint.rules.<rule> |
default |
Override a rule with default, on, or off |
lucisv.lint.options |
{} |
Per-rule option objects, using the same validator as project configuration |
lucisv.lint.waivers |
[] |
External waiver files, absolute or relative to the first workspace folder; added to [lint] waivers. A missing file or a bad directive is logged once and dropped. Unused external waivers are reported by lucisv check only |
For formatting, project configuration wins over editor line length and
indentation, then editor tab size supplies an indent fallback, then built-in
defaults apply. For regular VS Code format-on-save, use editor.formatOnSave;
do not also enable lucisv.formatOnSave.
For lint selection, the server currently reads editor settings only. Project
[lint] select/ignore lists affect the CLI and are not inherited by the server.
Selection proceeds through defaults → select → severity switches → per-rule
toggles → ignore. Editor rule options overlay project rule options key by key.
Invalid editor options are logged and dropped. Invalid project rule-option
entries are currently dropped by server linting without a per-entry log;
lucisv check reports them as configuration errors.
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.