Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML and CSS language server support #1895

Closed
aral opened this issue Mar 30, 2022 · 3 comments
Closed

HTML and CSS language server support #1895

aral opened this issue Mar 30, 2022 · 3 comments
Labels
A-packaging Area: Packaging and bundling C-enhancement Category: Improvements

Comments

@aral
Copy link
Contributor

aral commented Mar 30, 2022

Adding HTML and CSS language server support should be quite easy.

In languages.toml:

HTML

language-server = { command = "html-languageserver", args = ["--stdio"], language-id="html"}

CSS

language-server = { command = "css-languageserver", args = ["--stdio"], language-id="html"}

And the language server installation commands are:

HTML

npm install --global vscode-html-languageserver-bin

CSS

npm install --global vscode-css-languageserver-bin

Happy to prepare a pull request for the languages.toml file if you’d like.

@aral aral added the C-enhancement Category: Improvements label Mar 30, 2022
@aral aral changed the title Add HTML and CSS language server support HTML and CSS language server support Mar 30, 2022
@sudormrfbin
Copy link
Member

A PR will be very much welcome :)

@kirawi kirawi added the A-packaging Area: Packaging and bundling label Mar 30, 2022
@David-Else
Copy link
Contributor

David-Else commented Apr 2, 2022

https://www.npmjs.com/package/vscode-langservers-extracted

These are the current versions extracted from VS Code. They are the defaults for Neovim and maintained by the excellent gentleman https://github.com/hrsh7th:

https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#cssls
https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#html

JSON is included too :)

vscode-css-languageserver-bin is very old.

@David-Else
Copy link
Contributor

This has been closed by #2025 and #2018 (and JSON has been added too)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-packaging Area: Packaging and bundling C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

5 participants