From a87439ed3c9b99edc1512dc89acdd901cdc176c0 Mon Sep 17 00:00:00 2001 From: Valyn Tyler <115489989+valyntyler@users.noreply.github.com> Date: Sun, 16 Nov 2025 17:05:20 +0100 Subject: [PATCH] languages/html: add emmet LSP (#1212) * feat: add html.servers.emmet-ls * feat: update changelog --------- Co-authored-by: raf --- docs/release-notes/rl-0.8.md | 7 ++++++- modules/plugins/languages/html.nix | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/rl-0.8.md b/docs/release-notes/rl-0.8.md index e3dce037..049b14fc 100644 --- a/docs/release-notes/rl-0.8.md +++ b/docs/release-notes/rl-0.8.md @@ -72,7 +72,6 @@ - Add [](#opt-vim.lsp.lightbulb.autocmd.enable) for manually managing the previously managed lightbulb autocommand. - - A warning will occur if [](#opt-vim.lsp.lightbulb.autocmd.enable) and `vim.lsp.lightbulb.setupOpts.autocmd.enabled` are both set at the same time. Pick only one. @@ -589,3 +588,9 @@ [mellow.nvim]: https://github.com/mellow-theme/mellow.nvim - Add [mellow.nvim] plugin for vim and lualine theme support + +[valyntyler](https://github.com/valyntyler): + +[emmet-ls]: https://github.com/aca/emmet-ls + +- Add [emmet-ls] to `html.lsp.servers` diff --git a/modules/plugins/languages/html.nix b/modules/plugins/languages/html.nix index bcc6b842..7c8c83a3 100644 --- a/modules/plugins/languages/html.nix +++ b/modules/plugins/languages/html.nix @@ -23,6 +23,11 @@ filetypes = ["html" "shtml" "htm"]; root_markers = ["index.html" ".git"]; }; + emmet-ls = { + cmd = [(getExe pkgs.emmet-ls) "--stdio"]; + filetypes = ["html" "shtml" "htm"]; + root_markers = ["index.html" ".git"]; + }; }; defaultFormat = "superhtml";