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"]
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 lint rule names CLI and server
[lint].ignore string array [] lint rule names CLI and server

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], 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.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 from the selected or default set

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.