filipdutescu / renamer.nvim

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

feat(handler): migrate to handler #122

Closed filipdutescu closed 2 years ago

filipdutescu commented 2 years ago

Motivation

BREAKING CHANGE: 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.

Fixes: GH-117, fixes: GH-121

Proposed changes

Test plan

Existing tests are updated to match the new functionality and a new spec is added to test the custom handler.