nvimdev / nvimdev/lspsaga.nvim
Peek definition able to take width of the editor rather than the window
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 3.8k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
When I use peek definition while having more than one window open, the peek can be very small in width, when I have just one, it is must too large. It would be great to have the option to have it be consistent
Currently, this plugin has that functionality, but does not have the very convenient mapping functionality that lspsaga has. I would love for there to be a best of both worlds.
https://github.com/rmagatti/goto-preview
I could be wrong, but it could be rather simple to implement, as what I am thinking is exactly what the references feature does. Maybe getting the width from the editor rather than window. I will try to contribute when I get the time, but this is a feature I would love to have.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how the references feature determines its width, then compare that behavior with the peek definition implementation. Use the linked goto-preview project as a reference for the desired editor-width behavior. Done means peek definition uses a consistent width based on the editor rather than the overall window, while retaining its existing mapping functionality.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, neovim
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100