lsp_signature.nvim icon indicating copy to clipboard operation
lsp_signature.nvim copied to clipboard

Option to use only through toggle

Open petkaantonov opened this issue 1 year ago • 7 comments

Is it possible to disable automatic hints as you type?

I used this plugin because the built in parameter hints don't show current argument, and it disappears as soon as you type something. But now this plugin makes the parameter hints appear automatically as I type and not through the toggle key which is incredibly annoying and distracting to say the least. There should only be 1 window automatically appearing and for me that is cmp. How to enable it to appear from toggle key only and not automatically? Otherwise this is perfect, thanks.

petkaantonov avatar Apr 17 '23 08:04 petkaantonov

You can set

floating_window = false,

And use toggle key to show toggle signature floating window.

ray-x avatar Apr 17 '23 11:04 ray-x

This works initially, but after I have toggled it for a single use, it starts to automatically pop up again for every single thing.

I only need this for functions where I cannot remember the arguments, and then I press my mappings to show it. After I am done with that function it should never popup again until I press the toggle mapping again, does that make sense?

petkaantonov avatar Apr 20 '23 08:04 petkaantonov

That's the sort of behaviour I want, too.

I'm trying to build a low-visual-noise / distraction-free environment, which is why I've migrated from other IDEs / editors.

Let's see if we can make this happen! Any changes will to contribute to the beauty of the UX / general awesomeness of lsp_signature.nvim, as well.

textzenith avatar Apr 26 '23 17:04 textzenith

I pushed a change the toggle key will not reset floating_windows setting.

ray-x avatar Apr 27 '23 11:04 ray-x

I pushed a change the toggle key will not reset floating_windows setting.

Absolute fire 🔥, @ray-x, thanks to you I've finally got a Neovim configuration that is cleaner, faster, more usable, and less annoying than what I had in VSCode 😀

textzenith avatar May 11 '23 20:05 textzenith

This feature was indeed added in 9616a1a but then removed again in cc29090, it seems. It's still in the readme though.

dkuettel avatar Nov 28 '23 21:11 dkuettel

Sure, thanks for the heads up. The setting should not be removed. I put them back. Part of the change made in https://github.com/ray-x/lsp_signature.nvim/pull/290 is caused by my poor documentation.

ray-x avatar Nov 28 '23 22:11 ray-x