nvimdev / nvimdev/lspsaga.nvim

Width of rename window not configurable

Open
#1,425 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Lua
Stars
3.8k
Forks
308
PR merge metrics
No merged PRs in 30d

Description

Hi!

  1. 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?

  2. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.