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"
[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
[format].uvm-utils-indent boolean false indent the `uvm_field_* macros between `uvm_*_utils_begin and `uvm_*_utils_end one level 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 and editor
[lint].ignore string array [] rule names or severity classes CLI and editor
[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.

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 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.

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.format.uvmUtilsIndent false The editor’s spelling of [format] uvm-utils-indent; a checked-in lucisv.toml outranks 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 editor’s settings play the role the CLI’s flags play. Selection proceeds through defaults → select → severity switches → per-rule toggles → ignore. select is lucisv.lint.select when that setting is non-empty and the project’s [lint] select otherwise; ignore is decided the same way and independently. The severity switches and per-rule toggles are editor-only — a lucisv.toml has no such keys — and apply over whichever selection stands. Editor rule options overlay project rule options key by key. An invalid project option, unknown project rule name, or bad waiver entry is dropped and logged once with the same <file>:<line>: <message> wording the CLI reports. The CLI treats those project errors as exit 2; the server keeps linting with the valid entries. Editor-only settings are validated separately: bad options are logged, and an unknown select/ignore name is logged once as lucisv.lint.select: unknown rule: <name> (or ignore). Changing that list re-arms logging for newly introduced mistakes. An empty editor selection is the fallback sentinel, so it does not clear a non-empty project selection.

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.