Closed DrKGD closed 6 months ago
Describe the bug NUI vim.ui.select callback is called twice, once for "on_close" and once for "on_submit", not sure if that has always been the case but I just happened to discover it.
NUI Integration in dressing.nvim
System information
vim.ui.select
require('dressing').setup { select = { backend = { "nui", "fzf_lua", "builtin" }, } }
Of course, thats the MRE for me, using lazy.nvim, without lazy loading.
To Reproduce Steps to reproduce the behavior:
:lua vim.ui.select({'a','b'}, { prompt = 'test' }, function(input) print(input) end)
By commenting out on_close, nui integration works as intended, not sure if that bring any side effects into the mix :disappointed:
on_close
Should be fixed
Describe the bug NUI vim.ui.select callback is called twice, once for "on_close" and once for "on_submit", not sure if that has always been the case but I just happened to discover it.
NUI Integration in dressing.nvim
System information
vim.ui.select
backend? If so, which one? NUIOf course, thats the MRE for me, using lazy.nvim, without lazy loading.
To Reproduce Steps to reproduce the behavior:
:lua vim.ui.select({'a','b'}, { prompt = 'test' }, function(input) print(input) end)
By commenting out
on_close
, nui integration works as intended, not sure if that bring any side effects into the mix :disappointed: