filipdutescu / renamer.nvim

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

feat!: add `with_popup` to enable/disable popup #74

Closed filipdutescu closed 3 years ago

filipdutescu commented 3 years ago

Motivation

Add the with_popup parameter to determine whether or not to use the popup to enter the new name. If popup is disabled, use vim.fn.input to receive the new name.

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

Closes: GH-68

Proposed changes

Test plan

Existing tests are updated to validate the new functionality and new test cases are added to lua/tests/renamer_rename_spec.lua.