🪴 my neovim config:)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

plugin: validate `vim.ui.input` params

robin ed17e070 8ba4a33a

+5
+5
config/plugin/input.lua
··· 7 7 ---@type fun(opts?: vim.ui.input.Opts, on_confirm: fun(input?: string)) 8 8 ---@diagnostic disable-next-line: duplicate-set-field 9 9 vim.ui.input = function(opts, on_confirm) 10 + vim.validate("opts", opts, "table") 11 + vim.validate("opts.prompt", opts.prompt, "string", true) 12 + vim.validate("opts.default", opts.default, "string", true) 13 + vim.validate("on_confirm", on_confirm, "function") 14 + 10 15 local buf = vim.api.nvim_create_buf(false, true) 11 16 ---@type fun(v: string?) 12 17 local f = function(v)