vim.ui.select does not start in insert mode when current buf is terminal #2164
Answered
by
drowning-cat
santhosh-tekuri
asked this question in
Q&A
-
I have to explicitly press |
Beta Was this translation helpful? Give feedback.
Answered by
drowning-cat
Sep 1, 2025
Replies: 1 comment 2 replies
-
-- nvim -u repro.lua repro.lua
-- <space>f
-- repro.lua
vim.env.LAZY_STDPATH = '.repro'
load(vim.fn.system 'curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua')()
vim.keymap.set('n', '<space>f', function()
vim.ui.select({ 1, 2, 3 }, {}, function(ch)
vim.print(ch)
end)
end)
require('lazy.minit').repro {
spec = {
{
'folke/snacks.nvim',
opts = {
picker = {
ui_select = true,
},
},
},
},
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, that is indeed the problem. The same behavior occurs with other pickers as well. As a workaround, you can use this: