5.1.0 (2022-08-29)
5.0.0 (2022-05-19)
- 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.
4.0.1 (2022-01-15)
- popup having
sidescrolloff
if set (917e17d), closes #101 - popup not showing if renamed word appears twice (d02d6e9), closes #113
4.0.0 (2022-01-03)
- 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
- 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
3.0.3 (2021-11-29)
- popup showing when no LSP client attached (1b98bae), closes #96
- various errors and logs (dd25890), closes #95
3.0.2 (2021-11-23)
3.0.1 (2021-11-20)
3.0.0 (2021-11-18)
- Add a new field,
handler
, representing a function to be called after successful renames, with the LSPtextDocument/rename
raw response.
2.0.0 (2021-11-13)
-
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
- 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 from
vim.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 for
vim.lsp.buf.rename()
- Add rename changes to the quickfix list, conditioned by a new setup parameter. Update docs to describe the new parameter.
1.0.0 (2021-11-08)
-
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
- 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 to
vim.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.
0.3.0 (2021-11-06)
- highlight: remove prefix highlight (2f77f7e)
- placement when border is disabled (fdcafb9), closes #42
- position when word appears multiple times (d31cc3c), closes #43
- remove prefix and prompt mode (52c336d), closes #52
- highlighting: add popup title highlighting (8dbaf3d), closes #45
- highlight: make references highlighting optional (000d585), closes #40
0.2.1 (2021-10-30)
- cursor placement when finishing
rename()
(cdcdb17), closes #33 #34 - cursor position when cancelled from
insert
(8a5e63f), closes #37 - keymaps:
<c-c>
added ani
after clear (59f64e6), closes #30 - keymaps: all keymaps put the user in insert mode (f9bafe6), closes #31
- set Neovim mode to initial one (cdb40c6)
0.2.0 (2021-10-25)
- health: add healthcheck (d3de848), closes #8
- highlight the word to be renamed (f6eff46), closes #28
- keymaps: add mappings for easier navigation (8d0b299), closes #3