Hey my fellow Helix users.. I’m at a loss here so help me out!
Is there any keybind to cycle LSP code completions for a method with multiple parameter versions like in C++?
Example:
QWidget->setFocus()
Gives me an auto-complete with one result:
setFocus() -> void (1/2)
How do I cycle through these two?
The normal tab/shift tab do nothing, neither does ctrl-p/n nor up/down
@heals I think this might be down to the language server you're using. I've never seen (1/2) in helix before. Maybe the LSP is merging both results into 1 completion? Found this issue that might be related https://github.com/clangd/clangd/issues/25
@beeb yeah, what the issue describes is exactly my problem
@heals That would be Alt-n and Alt-p. It is not currently possible to remap those, unfortunately.
https://docs.helix-editor.com/keymap.html#signature-help-popup
@jgreitemann I will have to see if I can get that translated to macOS properly.. it seems that neither option-n/p nor command-n/p do anything
@heals Which terminal emulator are you using? With Alacritty, I had to set window.option_as_alt on macOS. For me the pain point is that Zellij’s default keymap intercepts Alt-n so I end up only cycling through the overloads backwards
@jgreitemann I'm using kitty but I already have their version (macos_option_as_alt) set so it should see left-option as alt.. always fun to figure out why your specific terminal does things differently!