From 65f66e2aeab663d88d8173743d4fddc1230ac6e4 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Mon, 13 Nov 2017 20:14:46 +0800 Subject: [PATCH] Fix issue with LanguageClient-neovim && deoplete fix https://github.com/autozimu/LanguageClient-neovim/issues/169 --- config/plugins/deoplete.vim | 5 +++++ docs/layers/autocomplete.md | 22 +++++++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/config/plugins/deoplete.vim b/config/plugins/deoplete.vim index 836c25f28..40b1a2eb8 100644 --- a/config/plugins/deoplete.vim +++ b/config/plugins/deoplete.vim @@ -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 deoplete#mappings#smart_close_popup()."\" inoremap deoplete#mappings#smart_close_popup()."\" set isfname-== diff --git a/docs/layers/autocomplete.md b/docs/layers/autocomplete.md index 157edabcf..1bb545b2a 100644 --- a/docs/layers/autocomplete.md +++ b/docs/layers/autocomplete.md @@ -5,15 +5,17 @@ title: "SpaceVim autocomplete layer" # [SpaceVim Layers:](https://spacevim.org/layers) autocomplete -* [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) @@ -95,6 +97,8 @@ call SpaceVim#layers#load('autocomplete', { \ }) ``` +## LSP supported + ## Key bindings ### auto-complete