filipdutescu / renamer.nvim

VS Code-like renaming UI for Neovim, writen in Lua.
Apache License 2.0
302 stars 11 forks source link

fix: popup having `sidescrolloff` if set #115

Closed filipdutescu closed 2 years ago

filipdutescu commented 2 years ago

Motivation

The popup would have the sidescrolloff set in Neovim's config, leading to words being truncated and looking off. Now the setting is put to 0 for the popup window to prevent the issue.

There was also an issue with the width of the popup if the word to be renamed was larger than the default width, which lead to 1 character being truncated. This was fixed by adding + 1 to the word length.

Closes: GH-101

Proposed changes

Test plan

Existing tests are updated to validate the new functionality.