nvim-lua / completion-nvim

A async completion framework aims to provide completion to neovim's built in LSP written in Lua
Apache License 2.0
974 stars 78 forks source link

Don't treat the first line of signature help as markdown #351

Closed mnowotnik closed 3 years ago

mnowotnik commented 3 years ago

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.