ray-x / lsp_signature.nvim

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

How can I open the signature window manually? #101

Closed NiYanhhhhh closed 3 years ago

NiYanhhhhh commented 3 years ago

Sometimes the signature window is useless and takes too much place, and event cover my code like this: image However, at some time I want it open to view the arguments. Therefor, I want the signature window not open by default while I can also use a key to open it manually. Is it possible or in what way should I setup? Thanks a lot!

ray-x commented 3 years ago

You can config the document lines to zero or use virtual text only mode. Please refer to the ducment. Also, you can trigger the signature with the key binding to vim.buf.lsp.signature_help() in your vimrc in either insert mode and normal mode if you config the floating window to false. Last, there is another keybind toggle_key provided by the plugin.

NiYanhhhhh commented 3 years ago

Got it. Thanks again!