Super simple Neovim floating input.
You use Telescope or Fzf-Lua to get a nice vim.ui.select
, and want a nice vim.ui.input
(e.g.
handling LSP rename) too?
Dressing works, but most of its code deals with
vim.ui.select
, which seems slightly overkill here.
This plugin is the simplest floating window to take input.
Neovim 0.9+ is required. Add liangxianzhe/floating-input.nvim
to your plugin manager, no setup is needed.
Default is to put floating window under the cursor for LSP renaming, and at the center for other use cases.
You can config styles, or override other window configs:
vim.ui.input = function(opts, on_confirm)
require("floating-input").input(opts, on_confirm, { border = 'double' })
end