ray-x / lsp_signature.nvim

LSP signature hint as you type
Apache License 2.0
2.01k stars 56 forks source link

Option to use only through toggle #265

Open petkaantonov opened 1 year ago

petkaantonov commented 1 year ago

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.

ray-x commented 1 year ago

You can set

floating_window = false,

And use toggle key to show toggle signature floating window.

petkaantonov commented 1 year ago

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?

textzenith commented 1 year ago

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.

ray-x commented 1 year ago

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

textzenith commented 1 year ago

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 😀

dkuettel commented 9 months ago

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

ray-x commented 9 months ago

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.