Something went wrong. Try again.
A floating `vim.ui.input` buffer that auto-resizes to fit its contents.
Something went wrong. Try again.
1.3 kB · 39 lines
Lua
at master
12345678910111213141516171819202122232425262728293031323334353637383940---@class multinput.Config---@field opts multinput.Opts Additional options, see multinput.Opts---@field width multinput.Limits The minimum and maximum width of the input buffer---@field height multinput.Limits The minimum and maximum height of the input buffer---@field padding integer How much padding will be added to the end of the input buffer---@field completion boolean Whether to enable completion---@field winhighlight string Window highlight groups (winhighlight)---@field win vim.api.keyset.win_config
---@class multinput.Opts---@field numbers "always" | "multiline" | "never" When to show line numbers--- "always" will always show line numbers--- "multiline" will only show line numbers if the input's height is > 1--- "never" will never show line numbers
---@class multinput.Limits---@field min integer---@field max integer
return { ---@type multinput.Config defaults = { opts = { numbers = "never" }, padding = 5, width = { min = 20, max = 60 }, height = { min = 1, max = 6 }, completion = true, winhighlight = "", win = { title = "Input: ", style = "minimal", focusable = true, relative = "cursor", col = -1, width = 1, height = 1, }, },}