Closed pidgeon777 closed 7 months ago
This already exists. Use vim.ui.input({default = "my text"}, function() end)
. See :help vim.ui.input
for more options.
Would it be possible to do this also for vim.ui.select
?
vim.ui.select
doesn't really have a concept of a "default" selection, but you can adjust the ordering of the items you pass in.
It would be great to add an argument to
vim.ui.input
to specify the default text when asking the user for input.