3rd / image.nvim

🖼️ Bringing images to Neovim.
MIT License
959 stars 37 forks source link

image plugin messes up with telescope insert mode #196

Open MikeLemo1 opened 2 months ago

MikeLemo1 commented 2 months ago

when I have images enabled and try to search for something in a telescope preview e.g. files the first character i write always gets pushed infront of my cursor not allowing me to search right (unless i type the last character of what I try to search which is hard to do when you fuzzy find not being sure what you yourself want to search for fully) but does get back to work right when disabling the images preview. Any idea why?

3rd commented 1 month ago

Hey, does the telescope window overlap the buffer with the images? If yes it should clear them if window_overlap_clear_enabled is on.

MikeLemo1 commented 1 month ago

Was offline for some internet problems now I'm back,

when starting telescope it hides the images and I noticed it does the mess up the user query with the telescope grep <CMD>lua require'telescope.builtin'.grep_string{ shorten_path = true, word_match = '-w', only_sort_text = true, search = '' }<CR> search rather than the file search

So even when I mess with the window_overlap_clear_enabled it still doesn't fix the problem forcing me to manually disable image my self with require("image").disable() before searching with telescope.