autoload/handlers.vim | 5 ++++- doc/lsp.txt | 4 ++-- diff --git a/autoload/handlers.vim b/autoload/handlers.vim index 0c7834290a7d6dc28226eaa9d7b283c17c31ab6e..65c19887381ad9ab670c28f257d4aa994b9568c8 100644 --- a/autoload/handlers.vim +++ b/autoload/handlers.vim @@ -132,7 +132,10 @@ var params_len = sig.parameters->len() if params_len > 0 && result.activeParameter < params_len var label = '' if sig.parameters[result.activeParameter]->has_key('documentation') - label = sig.parameters[result.activeParameter].documentation + if sig.parameters[result.activeParameter].documentation->type() + == v:t_string + label = sig.parameters[result.activeParameter].documentation + endif else label = sig.parameters[result.activeParameter].label endif diff --git a/doc/lsp.txt b/doc/lsp.txt index 6e60664c8fa10a7f1216287fbec38ce27501e355..f27fb57f6944f423c44f6d2ccc6b2f2e17e502f2 100644 --- a/doc/lsp.txt +++ b/doc/lsp.txt @@ -243,14 +243,14 @@ separator (e.g. a opening parenthesis). To disable this, you can set the showSignature option to false in your .vimrc file: > - call lsp#setOptions({showSignature: v:false}) + call lsp#setOptions({'showSignature': v:false}) < Default is true. You can get the function signature echoed in cmdline rather than displayed in popup if you use > - call lsp#setOptions({echoSignature: v:true}) + call lsp#setOptions({'echoSignature': v:true}) < Default is false.