-
-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telescope sends ModeChanged autocommands with incorrect modes #2636
Comments
I would try to get the mode via
What happens when you type in the telescope prompt is that No clue if |
I did try out using But I think your hunch is right that the |
This issue is only reproducible with previewer enabled. If you do The preview window/buffer sometimes needs to switch modes to do some jumping or similar, this is expected behavior. telescope.nvim/lua/telescope/previewers/buffer_previewer.lua Lines 289 to 301 in 74ce793
preview scrolling e.g. also switches modes telescope.nvim/lua/telescope/previewers/buffer_previewer.lua Lines 318 to 320 in 74ce793
Why is this an issue for you? And if its not really an issue for you can this be closed? |
@Conni2461 This is the reason I opened the issue: mawkler/modicator.nvim#17 |
Description
When typing in insert mode in telescope's prompt, Telescope sends various
ModeChanged
commands. When checking the mode withvim.api.nvim_get_mode().mode
it sometimes evaluates toi
(insert) and sometimesn
(normal), despite always staying in insert mode.Neovim version
Operating system and version
Manjaro Linux x86_64
Telescope version / branch / rev
#31b05ad
checkhealth telescope
Steps to reproduce
nvim -nu init.lua
:Telescope
lsp type
while looking at the mode that gets printed at the bottom leftExpected behavior
Telescope doesn't send any
ModeChanged
autocommand while typing in insert modeActual behavior
The mode changes between
i
andn
even though we're always in insert mode while typingMinimal config
The text was updated successfully, but these errors were encountered: