Making use of vim.ui.select()
in register_template
#229
Replies: 1 comment
-
Something similar to this was discussed in #86, with a workaround. Unfortunately there's not a great way to do this at the moment because the A couple other workarounds to try: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Actually my code is the following:
The problem is that
vim.ui.select
is making use of a callback function which sets the value oftask_name
after the template has been built.So, I would like to ask how to make use of
vim.ui.select
so that I can populate the template with the selected value, before returning it.Maybe also a way to make
vim.ui.select
synchronous, so that it blocks the execution of the template builder until a value is selected?Beta Was this translation helpful? Give feedback.
All reactions