Replies: 1 comment
-
|
In the example.md there is an example of making a floating preview, which is very nice. But it's not straightforward how to apply it to make a definition peeker. As far I understand, the lsp_definition seems to have a "goto" behaviour when there is only one definition result provided by LSP. But, it would be neat to have a peeker here. I am spending some times reading the source to understand where does this "goto" VS "show list of items" behaviour happen in trouble to see if it's configurable or not. Maybe trouble is not the right tool for peeker? Did you make any progress? Edit: Actually, if you set no auto_jump to the mode (so you do not get to definition with only one result), it's somewhat does the job, expect that the trouble list is showing instead of only seeing the peek. I think trouble is not the right plugin for peeking definition. Maybe, glance.nvim is the correct plugin for this! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Instead of a loclist of quickfix, is there a way to configure
:Trouble lsp_definitionsto open a floating preview by the cursor?Beta Was this translation helpful? Give feedback.
All reactions