Skip to content

Releases: filipdutescu/renamer.nvim

Renamer.nvim v5.1.0

29 Aug 21:09
Compare
Choose a tag to compare

Features

Renamer.nvim v5.0.0

19 May 20:37
Compare
Choose a tag to compare

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

15 Jan 09:58
Compare
Choose a tag to compare

Bug Fixes

  • popup having sidescrolloff if set (917e17d), closes #101
  • popup not showing if renamed word appears twice (d02d6e9), closes #113

Renamer.nvim v4.0.0

03 Jan 20:55
Compare
Choose a tag to compare

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

Renamer.nvim v3.0.3

29 Nov 20:30
Compare
Choose a tag to compare

Bug Fixes

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

Renamer.nvim v3.0.2

23 Nov 20:51
Compare
Choose a tag to compare

Bug Fixes

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

Renamer.nvim v3.0.1

20 Nov 11:10
Compare
Choose a tag to compare

Bug Fixes

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

Renamer.nvim v3.0.0

18 Nov 22:06
Compare
Choose a tag to compare
  • 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.

Renamer.nvim v2.0.0

13 Nov 09:28
Compare
Choose a tag to compare

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.

Renamer.nvim v1.0.0

08 Nov 21:12
Compare
Choose a tag to compare

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.