Skip to main content

Using completions

Support for this feature was deprecated on March 31, 2026 for non-Enterprise plans (the former Indie, Standard, Max, and Legacy plans). Enterprise plans 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 to accept a suggestion.
CommandAction
Accept the current suggestion
Globally enable suggestions (on by default)
Globally disable suggestions

Customizing accepting a suggestion

If you want to use a key other than 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 mapping by setting g:augment_disable_tab_mapping = v:true before the plugin is loaded.