Open Frederick888 opened 2 years ago
I don't think there is anything in the plugin I can do to fix this. This has to be addressed in Neovim core.
@lukas-reineke Is there already a Neovim issue I can subscribe to? If not could you help file one? Thank you!
I don't think so. I'm not even sure how this could be solved. Indent blankline has no way to hook into what the preview is doing. And the built-in substitute preview doesn't know indent blankline exists.
You could just disable indent blankline when you enter cmdline mode.
au CmdlineEnter * IndentBlanklineDisable
au CmdlineLeave * IndentBlanklineEnable
That's unfortunate. So instead of a bug report, do you think this can be a feature request to Neovim something along the lines of e.g. 'allow inccommand to override virtual texts' or 'make intermediate inccommand results visible to plugins'?
Yeah, probably the second one. But this would be pretty complex I imagine
I'm probably asking too much for an edge case but could you outline what you need from Neovim in a feature request, just to see if it gets us somewhere?
Absolutely no rush of cos.
Given file
Type
:%s/^ \+int/char
but don't hit enter yet, by default (inccommand=nosplit
) it looks like:Now use the vimrc below and do the same thing
It looks like: