thenbe / neotest-playwright

A playwright adapter for neotest.
MIT License
42 stars 5 forks source link

Support async `vim.ui.select` for project selection #20

Closed thenbe closed 4 months ago

thenbe commented 11 months ago

Because neovim does not yet have a native multi-select, we rely on this loop instead.

Our workaround behaves as intended, unless a wrapper around vim.ui.select (such as dressing.nvim) is used. That is because our loop expects vim.ui.select to block, whereas when dressing.nvim is used, vim.ui.select becomes asynchronous.

Ideally, NeotestPlaywrightProject should work both in blocking mode (vanilla nvim) as well as in async mode (if dressing.nvim is installed). Otherwise, we should notify users to avoid cases like #19.

Also see: