First line of signature help is treated as markdown and markdown errors
(like unescaped underscore) are highlighted as errors. It looks like this .
I wondered why hover action doesn't have this problem and figured out that syntax there is explicitly set to lua using this command:
vim.cmd(string.format("syntax region %s start=+\\%%%dl+ end=+\\%%%dl+ contains=%s", name, start, finish + 1, lang)) (hover.lua#239L) where, for example, name=lua1, start=1, finish=1, lang=@LUA
If I comment this line out, the floating window looks like in the signature help case.
First line of signature help is treated as markdown and markdown errors (like unescaped underscore) are highlighted as errors. It looks like this .
I wondered why hover action doesn't have this problem and figured out that syntax there is explicitly set to
lua
using this command:vim.cmd(string.format("syntax region %s start=+\\%%%dl+ end=+\\%%%dl+ contains=%s", name, start, finish + 1, lang))
(hover.lua#239L) where, for example, name=lua1, start=1, finish=1, lang=@LUA
If I comment this line out, the floating window looks like in the signature help case.