ray-x / lsp_signature.nvim

LSP signature hint as you type
Apache License 2.0
2.02k stars 57 forks source link

lsp function signature on cursor in normal mode #200

Closed kskarthik closed 2 years ago

kskarthik commented 2 years ago

Hi, I saw the project's demo clip, when cursor is placed on a function in normal mode, shows the function's docstring, But i am unable to see that behaviour in my setup. Is there any option to enable that behaviour? Is #198 related to this?

ambadyanands commented 2 years ago

Currently signature hint works only in insert mode (from what I tested). It'd be good if there's an option to toggle this feature in normal mode for those who want it.

ray-x commented 2 years ago

you can setup normal keymap to trigger lsp.buf.signature_help() in normal node, that will show the lsp_signature

ray-x commented 2 years ago

It works in both insert mode and normal mode. Normal mode will require a trigger key to trigger the signature help as mentioned above.

kskarthik commented 2 years ago

@ray-x thanks for your help!