From 1c181f49ed001c51b3864efcc4b81c90dd10c122 Mon Sep 17 00:00:00 2001 From: yavko Date: Sat, 29 Jul 2023 23:34:21 +0300 Subject: [PATCH] feat(languages/ts): add denols --- modules/languages/ts.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/languages/ts.nix b/modules/languages/ts.nix index 8c2efe29..2d651ede 100644 --- a/modules/languages/ts.nix +++ b/modules/languages/ts.nix @@ -20,6 +20,17 @@ with builtins; let } ''; }; + denols = { + package = pkgs.deno; + lspConfig = '' + vim.g.markdown_fenced_languages = { "ts=typescript" } + lspconfig.denols.setup { + capabilities = capabilities; + on_attach = attach_keymaps, + cmd = { "${cfg.lsp.package}/bin/deno", "lsp" } + } + ''; + }; }; # TODO: specify packages