Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure character value is present when setting mapping #525

Open
pusewicz opened this issue May 27, 2024 · 0 comments
Open

Ensure character value is present when setting mapping #525

pusewicz opened this issue May 27, 2024 · 0 comments

Comments

@pusewicz
Copy link

pusewicz commented May 27, 2024

I believe the mapping should ensure the ch variable is not empty. This is what I get when opening a Ruby file when using ruby-lsp.

Vim verbose log:

autocommand lsp.AddFile(expand('<abuf>')->str2nr())

Executing: lsp.AddFile(expand('<abuf>')->str2nr())
line 2:     :set ballooneval balloonevalterm
line 15: inoremap <buffer> <silent> ( (<C-R>=g:LspShowSignature()<CR>
line 15: inoremap <buffer> <silent>    <C-R>=g:LspShowSignature()<CR>

No mapping found
line 15: inoremap <buffer> <silent> , ,<C-R>=g:LspShowSignature()<CR>
line 54:       doautocmd <nomodeline> User LspAttached
Executing User Autocommands for "LspAttached"
autocommand call OnLspAttached(

Update: In this scenario, the value of ch is a single space . Maybe it should be replaced with <Space>?

pusewicz added a commit to pusewicz/lsp that referenced this issue May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant