-
Notifications
You must be signed in to change notification settings - Fork 1
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 picker opens files in insert mode when using reactive.nvim #17 #5
Comments
Hi there! Do you mean it enters file in insert mode or highlights it as insert one, but actually in normal mode? Did you see this comment in that issue? Can you please try this autocommand? nvim-telescope/telescope.nvim#2027 (comment) |
Hey @rasulomaroff , thanks for the quick response. I meant it enters insert mode. I did already see the comment you linked and I am using that workaround. Still, I wanted to raise awareness for that issue. Could it be that you are clearing some augroup that Telescope is using? Just a wild guess. I don't know your or Telescope code base. |
Hmm, don't think so The only place where I could possibly lose third-party highlights is the "winhl" option, but I save all the previous window highlights before applying mine and then apply them together. You don't have troubles with highlights themselves, right? Or do you? You pointed that your problem is that Telescope enters insert mode, so, I would wait for their clarification, 'cause as I said I don't manipulate modes at any level. |
Highlights are not affected. Sure, let's see what Telescope folks have to say. So far, they say it may be because of a nvim issue that has already been fixed upstream. I don't run nightly, though. Might give it a shot to see if it fixes things. |
Unsure if related, but seems so. With
Seems to be fixed by neovim/neovim#27051. When building neovim on commit 2fce95ec4 or later (i.e.
{
"rasulomaroff/reactive.nvim",
config = function()
require("reactive").setup({
builtin = {
cursor = true,
},
})
end,
}, Also fixed by adding nvim-telescope/telescope.nvim#2501 (comment) when running older versions of neovim:
|
@thelinmichael just tested on my machine and there's no such a problem.. |
Hm, I suppose the change to insert mode is done by |
I think I have the same issue, but its not really insert mode it just looks like it. With reactive enabled, using telescope to find a file and open, status line shows mode as insert, but its not actually... its still in normal mode but it displays as insert. Disabling reactive, it does not do this and reflects the mode correctly. ahh I think mine is how I'm getting the mode in heirline, changing from heirline to mini.statusline as a quick test, the issue goes away. In my particular case it seems to be this in heirline which causes it when reactive is enabled. Removing this update makes the issue stop presenting and it looks to still behave as expected (heirline).
Perhaps this might give some clues to help solve this issue |
@infinite-ops hi there! As far as I know the issue was fixed in the upstream Neovim. It wasn't Unfortunately, I see a lot of issues that are coming up when using those |
I'm using Neovim nightly and I do have the issue. nvim-telescope/telescope.nvim#2501 (comment) doesn't make any difference. % nvim -v
NVIM v0.11.0-dev-632+g33464189b-dirty
Build type: Release
LuaJIT 2.1.1716656478
Run "nvim -V1 -v" for more info My return {
"rasulomaroff/reactive.nvim",
event = { "BufEnter", "WinEnter" },
opts = {
load = { "catppuccin-mocha-cursor", "catppuccin-mocha-cursorline" },
},
} |
Error Description
When using Telescope together with
reactive.nvim
plugin, opening files from the picker immediately enters insert mode.X-posted in Telescope
Potentially Related Issues
actions.close
mapping leaves a terminal in insert mode nvim-telescope/telescope.nvim#2785My reactive config
The text was updated successfully, but these errors were encountered: