From 1c96ea6d81e0ac645bff6bb8b9045a31e47bdfdd Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 4 Dec 2025 10:59:29 +0100 Subject: [PATCH] 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. --- nvim/.config/nvim/lua/core/languages.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/core/languages.lua b/nvim/.config/nvim/lua/core/languages.lua index 15a8b05..ae76d07 100644 --- a/nvim/.config/nvim/lua/core/languages.lua +++ b/nvim/.config/nvim/lua/core/languages.lua @@ -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 = {} },