nvimdev / nvimdev/lspsaga.nvim
Width of rename window not configurable
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 3.8k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
Hi!
-
The width of the rename window is hard-coded here and often not wide enough to fit long (function, etc) names.
Can the width be made configurable or adjusted to the name that is renamed? -
The original name is erased when starting to type in the window. I.e., I cannot jump to the end and add a few characters to the existing name. E.g. for renaming foo -> foo2 requires typing "foo2" instead of just appending "2" to "foo". Can this be changed by a) placing the cursor at the end of the existing name in the window (now it's at the beginning), and b) by not erasing the existing name when starting to type?
Thanks!
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 at lua/lspsaga/rename/init.lua around line 100 and inspect how the rename window width, initial text, and cursor position are set. Exercise the rename prompt with a long name and by appending characters; done means the width can accommodate or be configured for long names and the existing name remains available with the cursor at its end.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, neovim
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100