Skip to content

Commit

Permalink
Set space to <Space>
Browse files Browse the repository at this point in the history
Closes #525
  • Loading branch information
pusewicz authored May 27, 2024
1 parent dfc001a commit 5457ce1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autoload/lsp/signature.vim
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ export def BufferInit(lspserver: dict<any>)

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

# close the signature popup when leaving insert mode
Expand Down

0 comments on commit 5457ce1

Please sign in to comment.