Skip to content

v0.3.0 — hide the hints

Choose a tag to compare

@teocns teocns released this 29 Jul 13:56
· 3 commits to main since this release
d6782f1

Adds show_hints, requested by @scc02 in #4.

The ⟪neocursor · <Tab> accept⟫ label and the ⟪<Tab> → L42⟫ prediction pill are there to teach you the keys. Once you know them, they're noise. Now you can turn them off.

require("neocursor").setup({
  show_hints = false,                  -- hide both
  -- show_hints = { edit = false },    -- hide the label, keep the jump pill
})

What each surface costs you

Surface Renders Hiding it costs
edit ⟪neocursor · <Tab> accept⟫ nothing — the diff beside it already shows the change
prediction ⟪<Tab> → L42⟫ the only on-screen sign a jump is queued

show_hints = false hides both. If you want the label gone but still want to see where <Tab> will land, use { edit = false }.

Suggestions are untouched either way: ghost text, diffs, and every <Tab> behavior are identical with hints on or off. :NeocursorDebug prints the resolved setting.

On not breaking <Tab>

show_prediction() both paints the pill and returns the boolean gating jumps at four call sites, so the naive way to hide a pill is to silently disable jumping. The paint is conditional; the return value isn't. flow_spec.lua now reruns its full 20-assertion behavioral suite with chrome disabled, and a new hints_spec.lua covers the render layer — both on ubuntu/windows/macos.

Full changelog: v0.2.0...v0.3.0