Ale: Add support for an HTML language server

Created on 20 May 2019  路  6Comments  路  Source: dense-analysis/ale


Hello, I am almost certain that this is already a feature. However I could not find an answer yet to this. As I am short on time, I figured that opening an issue could be the best option.

Is there a way to have the same completion capabilities that ALE gives in TS and JS on HTML? In this matter, whenever I type properties like class, src or even tags... ALE does not gives any suggestions. It is not a big deal but it would certainly shorten my work if I could do it without ins-completion.

Thanks in advance!

LSP new tool

Most helpful comment

Deoplete is a plugin which collects completion data from various sources, and there is a Deoplete completion source in ALE. There are also some other completion plugins like mucomplete and you can use them to combine completion data with ALE's omnifunc function. (:help ale#completion#OmniFunc())

All 6 comments

ALE doesn't do the work to provide completion data itself, it connects to language servers. This could be supported by adding support for the VSCode HTML language server: https://github.com/vscode-langservers/vscode-html-languageserver-bin I'll update this issue to note that.

I see, I am sort of new to VIM (more specifically, I am still mining the beginning of the user manual) and specially ALE. Just to clarify, other languages when connecting to the "proper" language server will provide that keyword completion while typing, correct?

Sorry for making this question, I am actually very intrigued and want to learn as most as possible. Thanks in advance!

Yeah, a language server could be used for providing completion data. You can also look for completion plugins like Deoplete which pull in completion data from other sources too.

I see, thanks for the clarification! Would you recommend me Deoplete over ALE's completion for TS as well? I know you work daily with TS so I am sure that you know the ups and downs of it better than I do.

Deoplete is a plugin which collects completion data from various sources, and there is a Deoplete completion source in ALE. There are also some other completion plugins like mucomplete and you can use them to combine completion data with ALE's omnifunc function. (:help ale#completion#OmniFunc())

That is awesome, thanks. Do not get me wrong though, ALE is the last plugin I would ditch. I appreciate all the effort you put into it! o/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexlafroscia picture alexlafroscia  路  4Comments

plexigras picture plexigras  路  3Comments

ilyakopy picture ilyakopy  路  4Comments

kronos29296 picture kronos29296  路  4Comments

garand picture garand  路  4Comments