Releases: filipdutescu/renamer.nvim
Renamer.nvim v5.1.0
Renamer.nvim v5.0.0
Bug Fixes
Features
BREAKING CHANGES
- handler: Migrate the LSP buffer request from manual to using
vim.lsp.buf.rename(...)
to make the request and a custom LSP response
handler to manage the custom response processing (eg setting the qf
list) and the original Neovim rename handler to apply the requested
changes.
This implies removing several existing function, doing some cleanup of
tests and updating the documentation.
Renamer.nvim v4.0.1
Renamer.nvim v4.0.0
Bug Fixes
- layout: popup position when low number of lines (0bb3b67), closes #105
- names of min and max width parameters (d6b6aef)
- readme: width parameter names were incorrect (3af5113)
- rename: responses without
changes
breakqflist
(842b499), closes #106 - renaming leading to file rename (814ddbb), closes #100
Features
BREAKING CHANGES
- Rename
minwidth
andmaxwidth
to the naming
convention used throughout the rest of the code (snake case). The two
will now be used asmin_width
andmax_width
.
Signed-off-by: Filip Dutescu filip.dutescu@gmail.com
Renamer.nvim v3.0.3
Renamer.nvim v3.0.2
Renamer.nvim v3.0.1
Renamer.nvim v3.0.0
Renamer.nvim v2.0.0
Bug Fixes
-
qflist: first line in file was not set correctly (2f9e66b), closes #79
-
fix(rename)!: cursor is not placed at the end of the initial word (a20b471), closes #73
-
feat(rename)!: add option for empty popup (8f3d886), closes #71
-
feat!: add
with_popup
to enable/disable popup (4ef89d5), closes #68 -
feat(quickfix-list)!: add changes to qf list (c88a70a), closes #69
BREAKING CHANGES
- Set the cursor to the end of the word inside the popup,
taking into account padding, as oposed to placing it at the start of the
popup. - Add options to
rename()
to allow for the
popup to be empty or contain the initial word. - Fallback when popup is disabled/not able to be drawn
changed fromvim.lsp.buf.rename()
to usingvim.fn.input()
to ask the
user for input. This is required for:
- setting the quickfix list with the resulting changes
- preserving non-GUI input alternative, since Neovim 0.5.2+ will have
its own interface forvim.lsp.buf.rename()
- Add rename changes to the quickfix list, conditioned
by a new setup parameter. Update docs to describe the new parameter.
Renamer.nvim v1.0.0
Bug Fixes
-
fix(padding)!: validate padding before drawing popup (da75d77), closes #62
-
fix!: fallback to LSP rename if popup cannot be drawn (0f8fd8f), closes #12
-
fix!: width adjusts to content and window (956989a), closes #6
-
fix!: popup draws correctly on screen edges (6b87076), closes #5
BREAKING CHANGES
- Validate padding alongside the window width and
height, before drawing popup. - Validate if the window height and width allow for the
popup to be drawn, otherwise fallback tovim.lsp.buf.rename()
and log
an error. - Partially hide the title if the width would be to large
for the current window. Add minimum and maximum width and minimum
height. Refactor the creation of popup options. - If the
cword
has a length greater than thewidth
,
setwidth
to that of thecword
. Add default width of 0, iftitle
is not set.