vim-pandoc / vim-pandoc-syntax

pandoc markdown syntax, to be installed alongside vim-pandoc
MIT License
424 stars 61 forks source link

Is LSP a thing that can inform syntax highlighting in vim? #329

Open alerque opened 4 years ago

alerque commented 4 years ago

I've been running across efforts in other editors that are trying to converge on using LSP to inform their syntax highlighting. I'm not sure of what the status is either for LSP in general or for VIM or for Markdown, but it would be nice to actually answer this question before going too deep down other rabbit holes (e.g. #300 and #327). Is this a thing? Is it an the verge of being a thing?

fmoralesc commented 4 years ago

There's https://github.com/prabirshrestha/vim-lsp which is supposed to allow for highlighting via LSP. I haven't tried it. neovim also includes an implementation of the lsp protocol by default, it's been a focus for development recently over there. As far as I know, there isn't any markdown-focused LSP client.

alerque commented 4 years ago

The repo mattn/efm-langserver seems to have some Markdown support, but it seems to be limited to just lint & reformat functions.