Closed Softsun2 closed 5 months ago
Hi @Softsun2 . Thanks for raising the issue! I did have this on my todo list to fix a while back, but it's one of those things that just dropped off my radar!
You're right in saying the keybinds should be restored to the their originals, if they conflict with one of the configurable keybinds in the options.
I'll take a look at this and hopefully come up with a solution.
If keymaps are set asynchronously (such as on attach) they are deleted and not restored if they conflict with the
lsp-overloads
keymaps. I think this should at least be mentioned in the readme if this is desired behaviour. If not, maybe it's possible to update the original keymaps list with the current local buffer keymaps before activating the popup (and thelsp-overloads
specific keymaps)?Here's the function I'm calling in
on_attach
that I'm running into the issue with:After I leave the signature popup the first time my
<C-k>
keymap is deleted and restored to the default nvim behavior (digraphs) instead of my on attach keymap.Instead of the using the on attach keymap my workaround is to use a global keymap that fails silently if
LspOverloadsSignature
is inaccessible:PS thanks for your work! This is a great little plugin :)