Skip to content

Commit

Permalink
Add support of override snippet support detection.
Browse files Browse the repository at this point in the history
Close #410.
Ref #379.
  • Loading branch information
autozimu committed Apr 30, 2018
1 parent f2cad27 commit d7cac79
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/LanguageClient.vim
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ function! s:Debug(message) abort
endfunction

function! s:hasSnippetSupport() abort
if get(g:, 'LanguageClient_hasSnippetSupport', 1) !=# 1
return 0
endif

" https://github.com/SirVer/ultisnips
if exists('g:did_plugin_ultisnips')
return 1
Expand Down
7 changes: 7 additions & 0 deletions doc/LanguageClient.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@ Customize fzf. Check fzf documentation for available options.
Default: v:null
Valid option: Array<String> | String

2.16 g:LanguageClient_hasSnippetSupport *g:LanguageClient_hasSnippetSupport*

Override detection of snippet support.

Default: 1
Valid options: 1 | 0

==============================================================================
3. Commands *LanguageClientCommands*

Expand Down

0 comments on commit d7cac79

Please sign in to comment.