1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:40:03 +08:00

Fix issue with LanguageClient-neovim && deoplete

fix https://github.com/autozimu/LanguageClient-neovim/issues/169
This commit is contained in:
wsdjeg 2017-11-13 20:14:46 +08:00
parent a7a5c91e56
commit 65f66e2aea
2 changed files with 18 additions and 9 deletions

View File

@ -91,6 +91,11 @@ 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', '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-==

View File

@ -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