Skip to content

Latest commit

 

History

History
237 lines (120 loc) · 13.3 KB

CHANGELOG.md

File metadata and controls

237 lines (120 loc) · 13.3 KB

5.1.0 (2022-08-29)

Features

5.0.0 (2022-05-19)

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.

4.0.1 (2022-01-15)

Bug Fixes

  • 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)

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 break qflist (842b499), closes #106
  • renaming leading to file rename (814ddbb), closes #100

Features

  • add customizable min and max width (e9d8653), closes #101

BREAKING CHANGES

  • Rename minwidth and maxwidth to the naming convention used throughout the rest of the code (snake case). The two will now be used as min_width and max_width.

Signed-off-by: Filip Dutescu filip.dutescu@gmail.com

3.0.3 (2021-11-29)

Bug Fixes

  • popup showing when no LSP client attached (1b98bae), closes #96
  • various errors and logs (dd25890), closes #95

3.0.2 (2021-11-23)

Bug Fixes

  • responses with documentChanges set qflist properly (#90) (645e7bd)

3.0.1 (2021-11-20)

Bug Fixes

  • rename: handle documentChanges LSP response (9341d33), closes #84

3.0.0 (2021-11-18)

  • feat!: add custom handler for successful renames (09030b3), closes #84

BREAKING CHANGES

  • Add a new field, handler, representing a function to be called after successful renames, with the LSP textDocument/rename raw response.

2.0.0 (2021-11-13)

Bug Fixes

  • qflist: first line in file was not set correctly (2f9e66b), closes #79

  • rename: cursor placement at word end (37c27fa), closes #73

  • 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 from vim.lsp.buf.rename() to using vim.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)

Bug Fixes

  • removed renaming as empty string (b20cc39), closes #57

  • 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 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 the width, set width to that of the cword. Add default width of 0, if title is not set.

0.3.0 (2021-11-06)

Bug Fixes

  • 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

Features

  • highlighting: add popup title highlighting (8dbaf3d), closes #45
  • highlight: make references highlighting optional (000d585), closes #40

0.2.1 (2021-10-30)

Bug Fixes

  • cursor placement when finishing rename() (cdcdb17), closes #33 #34
  • cursor position when cancelled from insert (8a5e63f), closes #37
  • keymaps: <c-c> added an i 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)

Features

  • health: add healthcheck (d3de848), closes #8
  • highlight the word to be renamed (f6eff46), closes #28
  • keymaps: add mappings for easier navigation (8d0b299), closes #3

0.1.0 (2021-10-10)

Bug Fixes

  • border window not closing (43853a1)
  • column alignment of popup (abbb194)
  • window close; feat: window style (a414a3d)

Features

  • add on_submit to execute callback (37f74d7)
  • Rename on submit (48b5a56)