mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
Update doc for autocomplete layer
This commit is contained in:
parent
b1904b4098
commit
174fac5c93
@ -1,18 +1,36 @@
|
|||||||
# [Layers](https://spacevim.org/layers) > autocomplete
|
---
|
||||||
|
title: "SpaceVim autocomplete layer"
|
||||||
|
---
|
||||||
|
|
||||||
SpaceVim uses neocomplete as the default completion engine if vim has lua
|
# [SpaceVim Layers:](https://spacevim.org/layers) autocomplete
|
||||||
support. If there is no lua support, neocomplcache will be used for the
|
|
||||||
completion engine. Spacevim uses deoplete as the default completion engine
|
|
||||||
for neovim. Deoplete requires neovim to be compiled with python support. For
|
|
||||||
more information about python support in neovim, please read neovim's documentation `:h provider-python`.
|
|
||||||
|
|
||||||
SpaceVim includes YouCompleteMe, but it is disabled by default. To enable
|
<!-- vim-markdown-toc GFM -->
|
||||||
ycm, see `:h g:spacevim_enable_ycm`.
|
* [Description](#description)
|
||||||
|
* [Install](#install)
|
||||||
|
* [Key Mappings](#key-mappings)
|
||||||
|
|
||||||
SpaceVim use neosnippet as the default snippet engine. The default snippets
|
<!-- vim-markdown-toc -->
|
||||||
are provided by `Shougo/neosnippet-snippets`. For more information, please read
|
|
||||||
`:h neosnippet`. Neosnippet support custom snippets, and the default snippets
|
## Description
|
||||||
directory is `~/.SpaceVim/snippets/`. If `g:spacevim_force_global_config = 1`,
|
|
||||||
SpaceVim will not append `./.SpaceVim/snippets` as default snippets directory.
|
|
||||||
|
This layer provides auto-completion to SpaceVim.
|
||||||
|
|
||||||
|
The following completion engines are supported:
|
||||||
|
|
||||||
|
- [neocomplete](https://github.com/Shougo/neocomplete.vim) - vim with `+lua`
|
||||||
|
- [neocomplcache](https://github.com/Shougo/neocomplcache.vim) - vim without `+lua`
|
||||||
|
- [deoplete](https://github.com/Shougo/deoplete.nvim) - neovim with `+python3`
|
||||||
|
- [YouCompleteMe](https://github.com/Valloric/YouCompleteMe) - disabled by default, to enable ycm, see `:h g:spacevim_enable_ycm`
|
||||||
|
|
||||||
|
Snippets are supported via [neosnippet](https://github.com/Shougo/neosnippet.vim).
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
To use this configuration layer, add it to your custom configuration file.
|
||||||
|
|
||||||
|
```vim
|
||||||
|
call SpaceVim#layers#load('autocomplete')
|
||||||
|
```
|
||||||
|
|
||||||
## Key Mappings
|
## Key Mappings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user