mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
2.1 KiB
2.1 KiB
title |
---|
SpaceVim autocomplete layer |
SpaceVim Layers: autocomplete
Description
This layer provides auto-completion to SpaceVim.
The following completion engines are supported:
- neocomplete - vim with
+lua
- neocomplcache - vim without
+lua
- deoplete - neovim with
+python3
- YouCompleteMe - disabled by default, to enable ycm, see
:h g:spacevim_enable_ycm
Snippets are supported via neosnippet.
Install
To use this configuration layer, add it to your custom configuration file.
call SpaceVim#layers#load('autocomplete')
Configuration
Key bindings
You can customize the user experience of auto-completion with the following layer variables:
auto-completion-return-key-behavior
set the action to perform when theRET
key is pressed, the possible values are:
complete
completes with the current selectionnil
does nothing
auto-completion-tab-key-behavior
set the action to perform when theTAB
key is pressed, the possible values are:
smart
cycle candidates, expand snippets, jump parameterscomplete
completes with the current selectioncycle
completes the common prefix and cycle between candidatesnil
does nothing
auto-completion-complete-with-key-sequence
is a string of two characters denoting a key sequence that will perform acomplete
action if the sequence as been entered quickly enough. If its value isnil
then the feature is disabled.auto-completion-complete-with-key-sequence-delay
is the number of seconds to wait for the auto-completion key sequence to be entered. The default value is 0.1 seconds.
The default configuration of the layer is: