Open LukasPietzschmann opened 7 months ago
vim.ui.select
And my config looks like the following:
input = { -- ... }, select = { enabled = true, backend = { 'nui' }, trim_prompt = true, nui = { position = { row = 2, col = 0, }, size = false, relative = 'cursor', border = { style = 'rounded' }, buf_options = { swapfile = false, filetype = 'DressingSelect', }, win_options = { winblend = 0 }, max_width = 80, max_height = 40, min_width = 1, min_height = 1, }, },
I'm using the following command as an example:
:lua vim.ui.select({'a', 'b'}, {}, function(i) print(i) end)
When running the above command for the first time, I get what I would expect: Now let's modify the command a bit.
:lua vim.ui.select({'a', 'bbbbbbbbbbbbbbbbbb', 'c'}, {}, function(i) print(i) end)
Now I get this: The popup didn't adapt to the new content.
Any idea if that's a bug, or a misconception on my side?
vim.ui.select
And my config looks like the following:
I'm using the following command as an example:
When running the above command for the first time, I get what I would expect: Now let's modify the command a bit.
Now I get this: The popup didn't adapt to the new content.
Any idea if that's a bug, or a misconception on my side?