Home

Awesome

floating-input.nvim

Super simple Neovim floating input.

screenshot

Why

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.

How

Note this plugin uses a new parameter, which requires neovim nightly build or the upcoming 0.9 release.

Add liangxianzhe/floating-input to your plugin manager, no setup is required.

Default is to put floating window under the cursor for LSP renaming, and at the center for other use cases.

You can also config styles, or override other window configs:

vim.ui.input = function(opts, on_confirm)
	require("floating-input").input(opts, on_confirm, { border = 'double' })
end