Using completions
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.| Command | Action |
|---|---|
| Tab | Accept the current suggestion |
| :Augment enable | Globally enable suggestions (on by default) |
| :Augment disable | Globally disable suggestions |
Customizing accepting a suggestion
If you want to use a key other than Tab to accept a suggestion, create a mapping that callsaugment#Accept(). The function takes an optional arugment used to specify the fallback text to insert if no suggestion is available.
g:augment_disable_tab_mapping = v:true before the plugin is loaded.