nvim: Add superhtml lsp

Added html LSP 'superhtml' (only works for HTML5) and also use it for
formatting html (and 'shtml') files, replacing prettier.

Superhtml seems faster at formatting html and allows switching between
single-line and multi-line tags by adding/removing a space in front of
or behind an html tag, very nifty.
This commit is contained in:
Marty Oehme 2025-12-04 10:59:29 +01:00
parent f4c439d58e
commit 1c96ea6d81
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -72,7 +72,7 @@ local languages = {
dap = { "delve" },
},
graphql = { format = { graphql = { "prettier" } } },
html = { format = { html = { "prettier", "rustywind" } } },
html = { lsp = { superhtml = {} }, format = { shtml = { "superhtml" }, html = { "superhtml", "rustywind" } } },
julia = { lsp = { julials = {} }, ts = { "julia" } },
json = {
lsp = { jsonls = {} },