Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
BSD 2-Clause "Simplified" License
13.57k
stars
1.44k
forks
source link
[hover] ParseLSPResult sets language 'text' for missing spec #4699
Closed
oliverralbertini closed 9 months ago
I have an LSP that is returning markdown code blocks on Hover with no language specified, e.g.
Foobar
As a result, you get "```" in the message line which is not that useful.
I made the regex to catch the first code fence accept empty language as well, and if it's empty, we set it to "text".
This makes it so that LSPs that return no language still produce legible restuls on the message line.
Fixes dense-analysis/ale#4698