aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortako <58279268+notjl@users.noreply.github.com>2023-02-12 21:00:03 +0800
committerGitHub <noreply@github.com>2023-02-12 14:00:03 +0100
commit00a2e8892fb3d144ac8fa70bcbd18711bb965765 (patch)
treed0b77e521e35ffbb5f7f54fec935fe5604b614d3
parentfeat: add fennel_language_server (#144) (diff)
downloadmason-lspconfig-00a2e8892fb3d144ac8fa70bcbd18711bb965765.tar
mason-lspconfig-00a2e8892fb3d144ac8fa70bcbd18711bb965765.tar.gz
mason-lspconfig-00a2e8892fb3d144ac8fa70bcbd18711bb965765.tar.bz2
mason-lspconfig-00a2e8892fb3d144ac8fa70bcbd18711bb965765.tar.lz
mason-lspconfig-00a2e8892fb3d144ac8fa70bcbd18711bb965765.tar.xz
mason-lspconfig-00a2e8892fb3d144ac8fa70bcbd18711bb965765.tar.zst
mason-lspconfig-00a2e8892fb3d144ac8fa70bcbd18711bb965765.zip
fix: rename sumneko_lua -> lua_ls (#148)
-rw-r--r--README.md10
-rw-r--r--doc/mason-lspconfig-mapping.txt2
-rw-r--r--doc/mason-lspconfig.txt18
-rw-r--r--doc/server-mapping.md2
-rw-r--r--lua/mason-lspconfig/mappings/filetype.lua2
-rw-r--r--lua/mason-lspconfig/mappings/server.lua2
-rw-r--r--lua/mason-lspconfig/settings.lua2
7 files changed, 19 insertions, 19 deletions
diff --git a/README.md b/README.md
index fd17a50..1e59e95 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@
configuration
- provide extra convenience APIs such as the `:LspInstall` command
- allow you to (i) automatically install, and (ii) automatically set up a predefined list of servers
-- translate between `lspconfig` server names and `mason.nvim` package names (e.g. `sumneko_lua <-> lua-language-server`)
+- translate between `lspconfig` server names and `mason.nvim` package names (e.g. `lua_ls <-> lua-language-server`)
It is recommended to use this extension if you use `mason.nvim` and `lspconfig` (it's strongly recommended for Windows
users).
@@ -88,7 +88,7 @@ require("mason").setup()
require("mason-lspconfig").setup()
-- After setting up mason-lspconfig you may set up servers via lspconfig
--- require("lspconfig").sumneko_lua.setup {}
+-- require("lspconfig").lua_ls.setup {}
-- require("lspconfig").rust_analyzer.setup {}
-- ...
```
@@ -121,7 +121,7 @@ Example:
```lua
require("mason-lspconfig").setup {
- ensure_installed = { "sumneko_lua", "rust_analyzer" },
+ ensure_installed = { "lua_ls", "rust_analyzer" },
}
```
@@ -129,7 +129,7 @@ require("mason-lspconfig").setup {
```lua
local DEFAULT_SETTINGS = {
- -- A list of servers to automatically install if they're not already installed. Example: { "rust_analyzer@nightly", "sumneko_lua" }
+ -- A list of servers to automatically install if they're not already installed. Example: { "rust_analyzer@nightly", "lua_ls" }
-- This setting has no relation with the `automatic_installation` setting.
ensure_installed = {},
@@ -219,7 +219,7 @@ local DEFAULT_SETTINGS = {
| LaTeX | `ltex` |
| LaTeX | `texlab` |
| Lelwel | `lelwel_ls` |
-| Lua | `sumneko_lua` |
+| Lua | `lua_ls` |
| Luau | `luau_lsp` |
| Markdown | `marksman` |
| Markdown | `prosemd_lsp` |
diff --git a/doc/mason-lspconfig-mapping.txt b/doc/mason-lspconfig-mapping.txt
index 60c073b..597eadd 100644
--- a/doc/mason-lspconfig-mapping.txt
+++ b/doc/mason-lspconfig-mapping.txt
@@ -70,6 +70,7 @@ kotlin-language-server kotlin_language_server
lelwel lelwel_ls
lemminx lemminx
ltex-ls ltex
+lua-language-server lua_ls
luau-lsp luau_lsp
marksman marksman
metamath-zero-lsp mm0_ls
@@ -119,7 +120,6 @@ spectral-language-server spectral
sqlls sqlls
sqls sqls
stylelint-lsp stylelint_lsp
-lua-language-server sumneko_lua
svelte-language-server svelte
svlangserver svlangserver
svls svls
diff --git a/doc/mason-lspconfig.txt b/doc/mason-lspconfig.txt
index 70cf673..03034a6 100644
--- a/doc/mason-lspconfig.txt
+++ b/doc/mason-lspconfig.txt
@@ -17,7 +17,7 @@ INTRODUCTION *mason-lspconfig-introduction*
- allow you to (i) automatically install, and (ii) automatically set up a
predefined list of servers
- translate between `lspconfig` server names and `mason.nvim` package names
- (e.g. `sumneko_lua <-> lua-language-server`)
+ (e.g. `lua_ls <-> lua-language-server`)
It is recommended to use this extension if you use `mason.nvim` and
`lspconfig` (it's strongly recommended for Windows users).
@@ -69,7 +69,7 @@ Setting up servers
Next, you're ready to set up the servers you want to use. Refer to lspconfig's
documentation |lspconfig-quickstart| for more information on how to do so!
>lua
- require("lspconfig").sumneko_lua.setup {}
+ require("lspconfig").lua_ls.setup {}
require("lspconfig").rust_analyzer.setup {}
<
Automatic server setup (advanced feature): ~
@@ -83,7 +83,7 @@ Installation of servers
To install an LSP server supported by lspconfig (and mason.nvim) you may use
the `:LspInstall` command, like so:
>vim
- :LspInstall rust_analyzer sumneko_lua
+ :LspInstall rust_analyzer lua_ls
<
This command is more or less an alias of the |:MasonInstall| command, except
that it only accepts LSP servers and - more importantly - only accepts
@@ -139,7 +139,7 @@ Example:
*mason-lspconfig-default-settings*
>lua
local DEFAULT_SETTINGS = {
- -- A list of servers to automatically install if they're not already installed. Example: { "rust-analyzer@nightly", "sumneko_lua" }
+ -- A list of servers to automatically install if they're not already installed. Example: { "rust-analyzer@nightly", "lua_ls" }
-- This setting has no relation with the `automatic_installation` setting.
ensure_installed = {},
@@ -225,7 +225,7 @@ setup_handlers({handlers})
Note: ~
The server names provided as keys are the lspconfig server names, not
mason's package names, so for example instead of "lua-language-server"
- it's "sumneko_lua".
+ it's "lua_ls".
Example: ~
>lua
@@ -240,8 +240,8 @@ setup_handlers({handlers})
["rust_analyzer"] = function ()
require("rust-tools").setup {}
end,
- ["sumneko_lua"] = function ()
- lspconfig.sumneko_lua.setup {
+ ["lua_ls"] = function ()
+ lspconfig.lua_ls.setup {
settings = {
Lua = {
diagnostics = {
@@ -265,7 +265,7 @@ get_installed_servers()
Note: ~
The returned strings are the lspconfig server names, not the mason
- package names. For example, "sumneko_lua" is returned instead of
+ package names. For example, "lua_ls" is returned instead of
"lua-language-server". This is useful if you want to loop through the
table and use its values to directly interact with lspconfig (for
example setting up all installed servers).
@@ -283,7 +283,7 @@ get_available_servers({filter})
Note: ~
The returned strings are the lspconfig server names, not the mason
- package names. For example, "sumneko_lua" is returned instead of
+ package names. For example, "lua_ls" is returned instead of
"lua-language-server". This is useful if you want to loop through the
table and use its values to directly interact with lspconfig (for
example setting up all installed servers).
diff --git a/doc/server-mapping.md b/doc/server-mapping.md
index 1a2c4d8..ee0c00a 100644
--- a/doc/server-mapping.md
+++ b/doc/server-mapping.md
@@ -67,6 +67,7 @@
| [lelwel_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#lelwel_ls) | [lelwel](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#lelwel) |
| [lemminx](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#lemminx) | [lemminx](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#lemminx) |
| [ltex](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#ltex) | [ltex-ls](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#ltex-ls) |
+| [lua_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#lua_ls) | [lua-language-server](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#lua-language-server) |
| [luau_lsp](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#luau_lsp) | [luau-lsp](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#luau-lsp) |
| [marksman](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#marksman) | [marksman](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#marksman) |
| [mm0_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#mm0_ls) | [metamath-zero-lsp](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#metamath-zero-lsp) |
@@ -116,7 +117,6 @@
| [sqlls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#sqlls) | [sqlls](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#sqlls) |
| [sqls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#sqls) | [sqls](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#sqls) |
| [stylelint_lsp](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#stylelint_lsp) | [stylelint-lsp](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#stylelint-lsp) |
-| [sumneko_lua](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#sumneko_lua) | [lua-language-server](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#lua-language-server) |
| [svelte](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#svelte) | [svelte-language-server](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#svelte-language-server) |
| [svlangserver](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#svlangserver) | [svlangserver](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#svlangserver) |
| [svls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#svls) | [svls](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#svls) |
diff --git a/lua/mason-lspconfig/mappings/filetype.lua b/lua/mason-lspconfig/mappings/filetype.lua
index 1ac56b1..d0ac421 100644
--- a/lua/mason-lspconfig/mappings/filetype.lua
+++ b/lua/mason-lspconfig/mappings/filetype.lua
@@ -88,7 +88,7 @@ return {
libsonnet = { "jsonnet_ls" },
liquid = { "tailwindcss", "theme_check" },
llw = { "lelwel_ls" },
- lua = { "sumneko_lua" },
+ lua = { "lua_ls" },
luau = { "luau_lsp" },
markdown = { "grammarly", "ltex", "marksman", "prosemd_lsp", "remark_ls", "tailwindcss", "zk" },
mdx = { "tailwindcss" },
diff --git a/lua/mason-lspconfig/mappings/server.lua b/lua/mason-lspconfig/mappings/server.lua
index a7f61d6..185d645 100644
--- a/lua/mason-lspconfig/mappings/server.lua
+++ b/lua/mason-lspconfig/mappings/server.lua
@@ -120,7 +120,7 @@ M.lspconfig_to_package = {
["sqlls"] = "sqlls",
["sqls"] = "sqls",
["stylelint_lsp"] = "stylelint-lsp",
- ["sumneko_lua"] = "lua-language-server",
+ ["lua_ls"] = "lua-language-server",
["svelte"] = "svelte-language-server",
["svlangserver"] = "svlangserver",
["svls"] = "svls",
diff --git a/lua/mason-lspconfig/settings.lua b/lua/mason-lspconfig/settings.lua
index a405f95..77b1d36 100644
--- a/lua/mason-lspconfig/settings.lua
+++ b/lua/mason-lspconfig/settings.lua
@@ -2,7 +2,7 @@ local M = {}
---@class MasonLspconfigSettings
local DEFAULT_SETTINGS = {
- -- A list of servers to automatically install if they're not already installed. Example: { "rust_analyzer@nightly", "sumneko_lua" }
+ -- A list of servers to automatically install if they're not already installed. Example: { "rust_analyzer@nightly", "lua_ls" }
-- This setting has no relation with the `automatic_installation` setting.
ensure_installed = {},