From c9387d7516351c846fe964a3a6f98eb94a17eeb4 Mon Sep 17 00:00:00 2001 From: Sam Varga <895702+vargasd@users.noreply.github.com> Date: Sun, 8 Sep 2024 11:38:46 -0400 Subject: [PATCH] feat: add tsp_server support (#448) --- README.md | 1 + doc/mason-lspconfig-mapping.txt | 1 + doc/server-mapping.md | 1 + lua/mason-lspconfig/mappings/filetype.lua | 1 + lua/mason-lspconfig/mappings/server.lua | 1 + 5 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 02e50852c..5dedd8ca9 100644 --- a/README.md +++ b/README.md @@ -424,6 +424,7 @@ local DEFAULT_SETTINGS = { | TypeScript | [`rome`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#rome) | | TypeScript | [`ts_ls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#ts_ls) | | TypeScript | [`vtsls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#vtsls) | +| Typespec | [`tsp_server`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#tsp_server) | | Typst | [`tinymist`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#tinymist) | | Typst | [`typst_lsp`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#typst_lsp) | | Vala | [`vala_ls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#vala_ls) | diff --git a/doc/mason-lspconfig-mapping.txt b/doc/mason-lspconfig-mapping.txt index d0b0e8a70..738f0e160 100644 --- a/doc/mason-lspconfig-mapping.txt +++ b/doc/mason-lspconfig-mapping.txt @@ -199,6 +199,7 @@ shopify-theme-check theme_check thriftls thriftls tinymist tinymist typescript-language-server ts_ls +tsp-server tsp_server twiggy-language-server twiggy_language_server typos-lsp typos_lsp typst-lsp typst_lsp diff --git a/doc/server-mapping.md b/doc/server-mapping.md index e47b9508a..e2e7cc756 100644 --- a/doc/server-mapping.md +++ b/doc/server-mapping.md @@ -196,6 +196,7 @@ | [thriftls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#thriftls) | [thriftls](https://mason-registry.dev/registry/list#thriftls) | | [tinymist](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#tinymist) | [tinymist](https://mason-registry.dev/registry/list#tinymist) | | [ts_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#ts_ls) | [typescript-language-server](https://mason-registry.dev/registry/list#typescript-language-server) | +| [tsp_server](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#tsp_server) | [tsp-server](https://mason-registry.dev/registry/list#tsp-server) | | [twiggy_language_server](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#twiggy_language_server) | [twiggy-language-server](https://mason-registry.dev/registry/list#twiggy-language-server) | | [typos_lsp](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#typos_lsp) | [typos-lsp](https://mason-registry.dev/registry/list#typos-lsp) | | [typst_lsp](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#typst_lsp) | [typst-lsp](https://mason-registry.dev/registry/list#typst-lsp) | diff --git a/lua/mason-lspconfig/mappings/filetype.lua b/lua/mason-lspconfig/mappings/filetype.lua index 56466aa22..2f8098fb9 100644 --- a/lua/mason-lspconfig/mappings/filetype.lua +++ b/lua/mason-lspconfig/mappings/filetype.lua @@ -211,6 +211,7 @@ return { ["typescript.glimmer"] = { "ember", "glint" }, ["typescript.tsx"] = { "angularls", "biome", "denols", "eslint", "rome", "ts_ls", "vtsls" }, typescriptreact = { "angularls", "biome", "cssmodules_ls", "denols", "dprint", "emmet_language_server", "emmet_ls", "eslint", "graphql", "harper_ls", "htmx", "rome", "sourcery", "stylelint_lsp", "tailwindcss", "ts_ls", "unocss", "vtsls" }, + typespec = { "tsp_server" }, typst = { "tinymist", "typst_lsp" }, v = { "v_analyzer", "vls" }, vala = { "vala_ls" }, diff --git a/lua/mason-lspconfig/mappings/server.lua b/lua/mason-lspconfig/mappings/server.lua index e142fdc3b..9a0245b67 100644 --- a/lua/mason-lspconfig/mappings/server.lua +++ b/lua/mason-lspconfig/mappings/server.lua @@ -199,6 +199,7 @@ M.lspconfig_to_package = { ["theme_check"] = "shopify-theme-check", ["thriftls"] = "thriftls", ["ts_ls"] = "typescript-language-server", + ["tsp_server"] = "tsp-server", ["twiggy_language_server"] = "twiggy-language-server", ["typos_lsp"] = "typos-lsp", ["tinymist"] = "tinymist",