Open backdround opened 1 year ago
As i can say, if i wrap that line in vim.schedule
, then all works fine:
https://github.com/nvim-telescope/telescope.nvim/blob/a3f17d3baf70df58b9d3544ea30abe52a7a832c2/lua/telescope/pickers.lua#L442
Or If i wrap the mapping in vim.schedule
, then all works fine too:
vim.keymap.set("o", "<M-m>", function()
vim.schedule(builtin.keymaps)
end)
Could anyone give a guess why that is working that way?
Description
If telescope triggered from operator-pending mode then it starts in normal mode instead of insert mode.
Precautions: The bug doesn't work when cursor on first line and first column.
Neovim version
Operating system and version
Archlinux
Telescope version / branch / rev
telescope master / a3f17d3 / (after 0.1.1)
checkhealth telescope
Steps to reproduce
d
)<M-m>
)Expected behavior
The current mode is
insert
in just opened telescope windowActual behavior
The current mode is
normal
in just opened telescope windowMinimal config