Skip to content

Commit

Permalink
feat: add nextls support (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinasc authored Sep 8, 2024
1 parent c9387d7 commit fee758e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down
1 change: 1 addition & 0 deletions doc/mason-lspconfig-mapping.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions doc/server-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down
8 changes: 4 additions & 4 deletions lua/mason-lspconfig/mappings/filetype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down Expand Up @@ -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" },
Expand Down Expand Up @@ -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" },
Expand Down
1 change: 1 addition & 0 deletions lua/mason-lspconfig/mappings/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions lua/mason-lspconfig/server_configurations/nextls/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
return function()
return {
cmd = { "nextls", "--stdio" },
}
end

0 comments on commit fee758e

Please sign in to comment.