From b0895fc9fa44b8e5e0c9f26ed5304d733ba478c0 Mon Sep 17 00:00:00 2001 From: Richard Halford <63303646+rsHalford@users.noreply.github.com> Date: Sat, 6 Jan 2024 15:14:54 +0000 Subject: [PATCH] plugins/lsp: add templ language server (#905) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * plugins/lsp: add templ language server * plugins/templ: remove name attribute Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> --------- Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> --- plugins/lsp/language-servers/default.nix | 4 ++++ tests/test-sources/plugins/lsp/_lsp.nix | 1 + 2 files changed, 5 insertions(+) diff --git a/plugins/lsp/language-servers/default.nix b/plugins/lsp/language-servers/default.nix index 9beee1b8..2a9774f5 100644 --- a/plugins/lsp/language-servers/default.nix +++ b/plugins/lsp/language-servers/default.nix @@ -545,6 +545,10 @@ with lib; let description = "Enable taplo, for TOML"; package = pkgs.taplo; } + { + name = "templ"; + description = "Enable the templ language server for the templ HTML templating language"; + } { name = "terraformls"; description = "Enable terraform-ls, for terraform"; diff --git a/tests/test-sources/plugins/lsp/_lsp.nix b/tests/test-sources/plugins/lsp/_lsp.nix index 6551e0f7..4d2b2dca 100644 --- a/tests/test-sources/plugins/lsp/_lsp.nix +++ b/tests/test-sources/plugins/lsp/_lsp.nix @@ -148,6 +148,7 @@ svelte.enable = true; tailwindcss.enable = true; taplo.enable = true; + templ.enable = true; terraformls.enable = true; texlab.enable = true; tsserver.enable = true;