diff options
| author | Thiago Nascimento <tnascimento.thiago@gmail.com> | 2024-09-08 16:41:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-08 17:41:28 +0200 |
| commit | fee758e9829917888827ab80c1146bd48512f2f7 (patch) | |
| tree | 7e18b71e7529ef200043086b4b285b0552f822b0 | |
| parent | feat: add tsp_server support (#448) (diff) | |
| download | mason-lspconfig-fee758e9829917888827ab80c1146bd48512f2f7.tar mason-lspconfig-fee758e9829917888827ab80c1146bd48512f2f7.tar.gz mason-lspconfig-fee758e9829917888827ab80c1146bd48512f2f7.tar.bz2 mason-lspconfig-fee758e9829917888827ab80c1146bd48512f2f7.tar.lz mason-lspconfig-fee758e9829917888827ab80c1146bd48512f2f7.tar.xz mason-lspconfig-fee758e9829917888827ab80c1146bd48512f2f7.tar.zst mason-lspconfig-fee758e9829917888827ab80c1146bd48512f2f7.zip | |
feat: add nextls support (#455)
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | doc/mason-lspconfig-mapping.txt | 1 | ||||
| -rw-r--r-- | doc/server-mapping.md | 1 | ||||
| -rw-r--r-- | lua/mason-lspconfig/mappings/filetype.lua | 8 | ||||
| -rw-r--r-- | lua/mason-lspconfig/mappings/server.lua | 1 | ||||
| -rw-r--r-- | lua/mason-lspconfig/server_configurations/nextls/init.lua | 5 |
6 files changed, 13 insertions, 4 deletions
@@ -229,6 +229,7 @@ local DEFAULT_SETTINGS = { | Earthly | [`earthlyls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#earthlyls) | | Elixir | [`elixirls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#elixirls) | | Elixir | [`lexical`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#lexical) | +| Elixir | [`nextls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#nextls) | | Elm | [`elmls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#elmls) | | Ember | [`ember`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#ember) | | Emmet | [`emmet_language_server`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#emmet_language_server) | diff --git a/doc/mason-lspconfig-mapping.txt b/doc/mason-lspconfig-mapping.txt index 738f0e1..16434ee 100644 --- a/doc/mason-lspconfig-mapping.txt +++ b/doc/mason-lspconfig-mapping.txt @@ -117,6 +117,7 @@ motoko-lsp motoko_lsp move-analyzer move_analyzer mutt-language-server mutt_ls neocmakelsp neocmake +nextls nextls nginx-language-server nginx_language_server nickel-lang-lsp nickel_ls nil nil_ls diff --git a/doc/server-mapping.md b/doc/server-mapping.md index e2e7cc7..4bccdd6 100644 --- a/doc/server-mapping.md +++ b/doc/server-mapping.md @@ -114,6 +114,7 @@ | [move_analyzer](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#move_analyzer) | [move-analyzer](https://mason-registry.dev/registry/list#move-analyzer) | | [mutt_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#mutt_ls) | [mutt-language-server](https://mason-registry.dev/registry/list#mutt-language-server) | | [neocmake](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#neocmake) | [neocmakelsp](https://mason-registry.dev/registry/list#neocmakelsp) | +| [nextls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#nextls) | [nextls](https://mason-registry.dev/registry/list#nextls) | | [nginx_language_server](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#nginx_language_server) | [nginx-language-server](https://mason-registry.dev/registry/list#nginx-language-server) | | [nickel_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#nickel_ls) | [nickel-lang-lsp](https://mason-registry.dev/registry/list#nickel-lang-lsp) | | [nil_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#nil_ls) | [nil](https://mason-registry.dev/registry/list#nil) | diff --git a/lua/mason-lspconfig/mappings/filetype.lua b/lua/mason-lspconfig/mappings/filetype.lua index 2f8098f..4b67a21 100644 --- a/lua/mason-lspconfig/mappings/filetype.lua +++ b/lua/mason-lspconfig/mappings/filetype.lua @@ -53,9 +53,9 @@ return { earthfile = { "earthlyls" }, edge = { "htmx", "tailwindcss" }, edn = { "clojure_lsp" }, - eelixir = { "elixirls", "htmx", "lexical", "tailwindcss" }, + eelixir = { "elixirls", "htmx", "lexical", "nextls", "tailwindcss" }, ejs = { "htmx", "tailwindcss" }, - elixir = { "elixirls", "htmx", "lexical", "tailwindcss" }, + elixir = { "elixirls", "htmx", "lexical", "nextls", "tailwindcss" }, elm = { "elmls" }, erb = { "htmx", "tailwindcss" }, erg = { "erg_language_server" }, @@ -85,7 +85,7 @@ return { haskell = { "hls" }, haxe = { "haxe_language_server" }, hbs = { "htmx", "tailwindcss" }, - heex = { "elixirls", "htmx", "lexical", "tailwindcss" }, + heex = { "elixirls", "htmx", "lexical", "nextls", "tailwindcss" }, helm = { "helm_ls", "snyk_ls" }, hoon = { "hoon_ls" }, html = { "angularls", "antlersls", "ast_grep", "emmet_language_server", "emmet_ls", "harper_ls", "html", "htmx", "ltex", "lwc_ls", "stimulus_ls", "tailwindcss", "unocss" }, @@ -191,7 +191,7 @@ return { star = { "starlark_rust" }, stylus = { "tailwindcss" }, sugarss = { "stylelint_lsp", "tailwindcss" }, - surface = { "elixirls", "lexical" }, + surface = { "elixirls", "lexical", "nextls" }, svelte = { "biome", "emmet_ls", "eslint", "htmx", "svelte", "tailwindcss", "unocss" }, svg = { "lemminx" }, swift = { "harper_ls" }, diff --git a/lua/mason-lspconfig/mappings/server.lua b/lua/mason-lspconfig/mappings/server.lua index 9a0245b..1da05a5 100644 --- a/lua/mason-lspconfig/mappings/server.lua +++ b/lua/mason-lspconfig/mappings/server.lua @@ -116,6 +116,7 @@ M.lspconfig_to_package = { ["move_analyzer"] = "move-analyzer", ["mutt_ls"] = "mutt-language-server", ["neocmake"] = "neocmakelsp", + ["nextls"] = "nextls", ["nickel_ls"] = "nickel-lang-lsp", ["nginx_language_server"] = "nginx-language-server", ["nil_ls"] = "nil", diff --git a/lua/mason-lspconfig/server_configurations/nextls/init.lua b/lua/mason-lspconfig/server_configurations/nextls/init.lua new file mode 100644 index 0000000..386c1eb --- /dev/null +++ b/lua/mason-lspconfig/server_configurations/nextls/init.lua @@ -0,0 +1,5 @@ +return function() + return { + cmd = { "nextls", "--stdio" }, + } +end |
