How to run vim.ui.select
synchronously?
#70
Answered
by
FoamScience
FoamScience
asked this question in
Q&A
-
The idea is to use it in configuration files Something along these lines: dap.configurations.cpp = {
{
program = function()
local var = ""
vim.ui.select({'main', 'bin'}, {prompt = 'Choose binary:'}, function(choice) var = choice end)
return var
end,
...} But by the time the configuration is read, it appears I'm new to the whole Lua thing, so I thought I would ask if there is a simple way to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
FoamScience
Oct 23, 2022
Replies: 1 comment 1 reply
-
Found a piece of code demonstrating this here in |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
FoamScience
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found a piece of code demonstrating this here in
dap.ui