Closed benlubas closed 5 months ago
There is no good way to get information about text concealed by TS/syntax. This concealed text causes the desired image position to move, with no way for us to figure that out, we can't display the image in the right spot.
There's this just doesn't work for TS concealment I guess.synconcealed()
, but this method returns information about a single character at a time.
There's vim.inspect_pos()
, but this also returns information about a single character at a time.
We could try to run a TS query for concealed items.. though I don't think TS works like that
it explicitly ignores concealed textscreenpos()
is also an option
Examples
unconcealed text:
concealed text:
images rendering inline without concealed text: