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
remove all buffer requests method
update renamer._setup(...) to change the default rename handler to the custom one
add custom handler
add custom handler test spec (lua/tests/renamer_rename_handler_spec.lua)
Test plan
Existing tests are updated to match the new functionality and a new spec is added to test the custom handler.
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
renamer._setup(...)
to change the default rename handler to the custom onelua/tests/renamer_rename_handler_spec.lua
)Test plan
Existing tests are updated to match the new functionality and a new spec is added to test the custom handler.