# and then setup the below mapping for those buffers.
# map characters that trigger signature help
- if caps->has_key('signatureHelpProvider')
+ if g:LSP_Show_Signature && caps->has_key('signatureHelpProvider')
var triggers = caps.signatureHelpProvider.triggerCharacters
for ch in triggers
exe 'inoremap <buffer> <silent> ' .. ch .. ' ' .. ch .. "<C-R>=lsp#showSignature()<CR>"
exe 'autocmd InsertLeave <buffer=' .. bnr .. '> call lsp#leftInsertMode()'
# map characters that trigger signature help
- if lspserver.caps->has_key('signatureHelpProvider')
+ if g:LSP_Show_Signature && lspserver.caps->has_key('signatureHelpProvider')
var triggers = lspserver.caps.signatureHelpProvider.triggerCharacters
for ch in triggers
exe 'inoremap <buffer> <silent> ' .. ch .. ' ' .. ch
*:LspShowSignature*
:LspShowSignature Displays the signature of the symbol (e.g. a function
- or method) before the cursor in a popup. The popup is
- also automatically displayed in insert mode after
- entering a symbol name followed by a separator (e.g. a
- opening parenthesis).
+ or method) before the cursor in a popup.
+
+ The popup is also automatically displayed in insert
+ mode after entering a symbol name followed by a
+ separator (e.g. a opening parenthesis). Unless if: >
+ let g:LSP_Show_Signature = v:false
+<
+ Default is true.
*:LspDiagShow*
:LspDiagShow Creates a new location list with the diagnostics
let g:LSP_24x7_Complete = v:true
endif
+if !exists('g:LSP_Show_Signature')
+ let g:LSP_Show_Signature = v:true
+endif
+
augroup LSPAutoCmds
au!
autocmd BufNewFile,BufReadPost *