Skip to content

Autocomplete Plugin ​

Help query: "What does the autocomplete plugin do?" / "How do I use autocomplete in Volt?"

The autocomplete plugin drives insert-mode completion. Providers in the source or-group (LSP, calculator, buffer words, DB query buffers, …) compete; higher-priority providers suppress lower ones when they return results. The snippets provider has no or-group, so its items always merge after LSP.

Package nameautocomplete
Moduleuser/autocomplete.rs

What it does ​

  • Trigger a completion popup
  • Navigate and accept/cancel candidates
  • Order providers so LSP wins in the source group when available; snippets always merge

Commands ​

CommandDescription
autocomplete.triggerTriggers autocomplete at the cursor.
autocomplete.nextSelects the next completion candidate.
autocomplete.previousSelects the previous completion candidate.
autocomplete.acceptAccepts the selected completion; for LSP items also applies additionalTextEdits (imports, usings, includes) and keeps the cursor after the primary insert.
autocomplete.cancelCancels the autocomplete popup.

Keybindings ​

ChordCommandScope
Ctrl+Spaceautocomplete.triggerGlobal (Insert)
Ctrl+nautocomplete.nextAutocomplete
Ctrl+pautocomplete.previousAutocomplete
Ctrl+yautocomplete.acceptAutocomplete

Notes ​

  • Accepting an LSP completion resolves the item when the server supports it, inserts the primary text, then applies any additionalTextEdits (typical import / using / include fixes from servers such as roslyn-language-server). The caret stays after the primary insert.
  • To add a provider for your own plugin, see Autocomplete providers under User packages.

Volt — modal editor platform · docs optimized for in-editor help search