Skip to content

Commit 5457ce1

Browse files
authored
Set space to <Space>
Closes yegappan#525
1 parent dfc001a commit 5457ce1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

autoload/lsp/signature.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ export def BufferInit(lspserver: dict<any>)
5757

5858
# map characters that trigger signature help
5959
for ch in lspserver.caps.signatureHelpProvider.triggerCharacters
60-
exe $"inoremap <buffer> <silent> {ch} {ch}<C-R>=g:LspShowSignature()<CR>"
60+
var mapChar = ch
61+
if ch =~ ' '
62+
mapChar = '<Space>'
63+
endif
64+
exe $"inoremap <buffer> <silent> {mapChar} {mapChar}<C-R>=g:LspShowSignature()<CR>"
6165
endfor
6266

6367
# close the signature popup when leaving insert mode

0 commit comments

Comments
 (0)