-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
fix(cs-omnisharp): Fix bug in handler registration caused by wrong lsp name #1279
Conversation
Review ChecklistDoes this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist: Proper conventional commit scoping:
|
omnisharp-extended-lsp.nvim
handler registration
Oops I misread the changes, sorry. However I'm still surprised that this fix works. What about using custom commands instead of handlers? |
Waiting on a reply on this before I merge. @ahmtsen |
Custom handlers extend the functionality of Neovim's built-in LSP functions, such as For example, if we map By using custom handlers instead of custom commands, this pack extends the functionality of Neovim's built-in functions directly. This approach ensures consistency and avoids conflicts with user-defined key mappings. I hope this explanation makes things clear. |
@ahmtsen Yes, that make sense, thanks for the explanation. In my config I was using handlers for a long time, then after a neovim nightly update I ran into this problem (neovim/neovim#30908) and that's why I switched to custom commands which fixed it. And custom commands are marked as optimal while handlers are marked as not suboptimal (https://github.com/Hoffs/omnisharp-extended-lsp.nvim#how-to-use) due to many similar issues. Thanks for pointing out that in a distro you can't just change default keybindings as people may have remapped that, that's a very good point! However if this issue comes back, maybe some hacky solution has to be implemented, like overriding If you've properly tested this change, no objections from me, feel free to merge, I see this fixes an issue :) But I don't see how does it fix the 'Cursor position outside of buffer' issue. (Also sorry for the noise, I came from the neovim issue and I'm not an AstroNvim user) |
π Description
omnisharp-extended-lsp.nvim
handlers are not registered correctly.Language server name changed from
csharp_ls
toomnisharp
.Closes #1278
βΉ Additional Information