mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 05:30:05 +08:00
commit
d042550b05
@ -544,7 +544,7 @@ function! SpaceVim#end() abort
|
||||
call add(g:spacevim_plugin_groups, 'colorscheme')
|
||||
endif
|
||||
|
||||
if has('nvim')
|
||||
if has('python3')
|
||||
let g:spacevim_autocomplete_method = 'deoplete'
|
||||
elseif has('lua')
|
||||
let g:spacevim_autocomplete_method = 'neocomplete'
|
||||
|
@ -58,6 +58,10 @@ function! SpaceVim#layers#autocomplete#plugins() abort
|
||||
\ 'on_event' : 'InsertEnter',
|
||||
\ 'loadconf' : 1,
|
||||
\ }])
|
||||
if !has('nvim')
|
||||
call add(plugins, ['SpaceVim/nvim-yarp', {'merged': 0}])
|
||||
call add(plugins, ['SpaceVim/vim-hug-neovim-rpc', {'merged': 0}])
|
||||
endif
|
||||
endif
|
||||
if has('patch-7.4.774')
|
||||
call add(plugins, ['Shougo/echodoc.vim', {
|
||||
@ -67,6 +71,7 @@ function! SpaceVim#layers#autocomplete#plugins() abort
|
||||
\ }])
|
||||
endif
|
||||
call add(plugins, ['tenfyzhong/CompleteParameter.vim', {'merged': 0}])
|
||||
call add(plugins, ['SpaceVim/LanguageClient-neovim', {'merged': 0}])
|
||||
return plugins
|
||||
endfunction
|
||||
|
||||
|
@ -90,7 +90,12 @@ let g:deoplete#keyword_patterns.clojure = '[\w!$%&*+/:<=>?@\^_~\-\.#]*'
|
||||
|
||||
" public settings
|
||||
call deoplete#custom#set('_', 'matchers', ['matcher_full_fuzzy'])
|
||||
let g:deoplete#ignore_sources._ = get(g:deoplete#ignore_sources, '_', ['around'])
|
||||
let g:deoplete#ignore_sources._ = get(g:deoplete#ignore_sources, '_', ['around', 'LanguageClient'])
|
||||
for key in keys(g:deoplete#ignore_sources)
|
||||
if key != '_' && index(keys(get(g:, 'LanguageClient_serverCommands', {})), key) == -1
|
||||
let g:deoplete#ignore_sources[key] = g:deoplete#ignore_sources[key] + ['around', 'LanguageClient']
|
||||
endif
|
||||
endfor
|
||||
inoremap <expr><C-h> deoplete#mappings#smart_close_popup()."\<C-h>"
|
||||
inoremap <expr><BS> deoplete#mappings#smart_close_popup()."\<C-h>"
|
||||
set isfname-==
|
||||
|
@ -5,15 +5,17 @@ title: "SpaceVim autocomplete layer"
|
||||
# [SpaceVim Layers:](https://spacevim.org/layers) autocomplete
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
* [Description](#description)
|
||||
* [Install](#install)
|
||||
* [Configuration](#configuration)
|
||||
* [Key bindings](#key-bindings)
|
||||
* [Snippets directories](#snippets-directories)
|
||||
* [Show snippets in auto-completion popup](#show-snippets-in-auto-completion-popup)
|
||||
* [Key bindings](#key-bindings-1)
|
||||
* [auto-complete](#auto-complete)
|
||||
* [Neosnippet](#neosnippet)
|
||||
|
||||
- [Description](#description)
|
||||
- [Install](#install)
|
||||
- [Configuration](#configuration)
|
||||
- [Key bindings](#key-bindings)
|
||||
- [Snippets directories](#snippets-directories)
|
||||
- [Show snippets in auto-completion popup](#show-snippets-in-auto-completion-popup)
|
||||
- [LSP supported](#lsp-supported)
|
||||
- [Key bindings](#key-bindings-1)
|
||||
- [auto-complete](#auto-complete)
|
||||
- [Neosnippet](#neosnippet)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
@ -95,6 +97,8 @@ call SpaceVim#layers#load('autocomplete', {
|
||||
\ })
|
||||
```
|
||||
|
||||
## LSP supported
|
||||
|
||||
## Key bindings
|
||||
|
||||
### auto-complete
|
||||
|
Loading…
Reference in New Issue
Block a user