Skip to content

liangxianzhe/floating-input.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

Super simple floating "ui.input" for NeoVim.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages