Vim and Neovim
Completions
Use code completions to get more done. Augment’s radical context awareness means more relevant suggestions, fewer hallucinations, and less time hunting down documentation.
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 calls augment#Accept()
. The function takes an optional arugment used to specify the fallback text to insert if no suggestion is available.
You can disable the default Tab mapping by setting g:augment_disable_tab_mapping = v:true
before the plugin is loaded.