Skip to main content

Using completions

Support for this feature will be deprecated on March 31, 2026 for Indie, Standard Max, and Legacy plans. Enterprise plans will continue to be supported. Read more.
Augment’s code completions integrates with Vim and Neovim to give you autocomplete-like suggestions as you type. Completions are enable by default and you can use Tab to accept a suggestion.
CommandAction
TabAccept the current suggestion
:Augment enableGlobally enable suggestions (on by default)
:Augment disableGlobally disable suggestions

Customizing accepting a suggestion

If you want to use a key other than Tab to accept a suggestion, create a mapping that calls augment#Accept(). The function takes an optional arugment used to specify the fallback text to insert if no suggestion is available.
" Use Ctrl-Y to accept a suggestion
inoremap <c-y> <cmd>call augment#Accept()<cr>

" Use enter to accept a suggestion, falling back to a newline if no suggestion
" is available
inoremap <cr> <cmd>call augment#Accept("\n")<cr>
You can disable the default Tab mapping by setting g:augment_disable_tab_mapping = v:true before the plugin is loaded.