-
v0.18.0
Stablereleased this
2026-08-30 14:47:40 -07:00 | 251 commits to master since this releaseInline instantiation: the popup names the module, the ghost writes the
rest. Two levels, sized for a 4,000-file SoC.The two-level split
Level 1 — the completion popup offers module names. Tier 0 used to
plan a full instantiation skeleton for up to 64 candidate modules on
every keystroke — each one a definition-file read and a header parse.
It is now a scan of the in-memory module table and nothing else: the
item inserts the name,Moduleicon and declaring file beside it.Level 2 — the exact name grows a ghost. The moment the identifier
at the cursor exactly (case-sensitively) matches an indexed module, at
a position where an instantiation is legal, with nothing after the
cursor,textDocument/inlineCompletionoffers the rest of the
instantiation in grey: every parameter override, every port
connection, each a snippet tabstop, ports matching an in-scope signal
auto-connected. Tab writes it; the editor's own tab settings indent
it. Works the same whether the name was typed by hand or accepted
from the popup. Exactly one module is ever planned, through the
guarded header-slice path and the file-view cache.The per-keystroke probe is
Candidates::has_module— a case-sensitive
binary search whose sorted-table premise is pinned by test. Measured
on opentitan (3,976 files): a keystroke that is not a module name
costs 0.10–0.17 ms; the ghost foraes(14 parameters, 16 ports)
0.6–1.1 ms; the 112-parametertop_earlgrey2.5 ms cold.New setting:
lucisv.inlineInstantiation(default on), independent of
lucisv.inlineTemplates.Honest losses, written down: the popup's per-module documentation
panel is gone (it cost a plan per item); a client without
inlineCompletionsupport (Neovim's built-in LSP today) gets names
but no skeleton — filed asdocs/topo.md§2.9-19 for an
execute-command spelling. A module declared in two files now appears
in the popup by name (it used to vanish entirely); its ghost declines
rather than guess which file.Formatter output is unchanged; the bump is the two-level completion
behavior itself. Also checked in:docs/performance_take2.md
(referenced since 0.15.0, never staged —performance.md,
performance_take2.md).Downloads