image.nvim icon indicating copy to clipboard operation
image.nvim copied to clipboard

image plugin messes up with telescope insert mode

Open MikeLemo1 opened this issue 1 year ago • 2 comments

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?

MikeLemo1 avatar Jul 11 '24 15:07 MikeLemo1

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

3rd avatar Jul 18 '24 19:07 3rd

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.

MikeLemo1 avatar Jul 30 '24 11:07 MikeLemo1