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 /lua | |
| 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)
Diffstat (limited to 'lua')
| -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 |
3 files changed, 10 insertions, 4 deletions
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 |
