lsp-overloads.nvim icon indicating copy to clipboard operation
lsp-overloads.nvim copied to clipboard

Doesn't work with minimal config

Open leoshatrushin opened this issue 1 year ago • 2 comments

Minimal config with nvim-cmp: https://github.com/leoshatrushin/tmp-minconfig Environment: nvim v0.10.0, kitty 0.34.1 with no config, macOS 14.3.1

Tests: touch js.js, :LspInstall tsserver, let x = "a"; x.match touch cpp.cpp, :LspInstall clangd, int main() { std::max } I use nvim-cmp to go down to the right function then attempt to press the next_signature keymap

Doesn't work with either default keymaps or custom keymaps - "next overload" makes no change in signature window, random stuff like going to a newline happens instead

leoshatrushin avatar Jun 30 '24 05:06 leoshatrushin

Ok I think I see now that the signature help window once you type "(" after the function is different from the nvim-cmp preview. So there's no way to view overloads from inside the nvim-cmp preview window?

leoshatrushin avatar Jun 30 '24 09:06 leoshatrushin

Hi @leoshatrushin - Yes, this plugin hasn't got any integration built in with nvim-cmp (or any completion engine really). It's something that would be handy to have as a feature, but I am very limited on time as it stands for a while now.

By all means, raise that feature request. I'm hoping that someone else would see that and have a bit more time than myself to look into implementing it.

On the other hand, I'm not sure if there already exists a plugin that adds overload signatures into a cmp engine, so it might be worth looking into that initially.

Issafalcon avatar Jul 23 '24 12:07 Issafalcon