aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-10-29 16:08:21 +0200
committerGitHub <noreply@github.com>2021-10-29 16:08:21 +0200
commit6e390ac29a97e8f07661a3dbb2f7e4ddf10fdc11 (patch)
tree6bbacdaef285dd6a84c6ea2c391be57b8a659dc4 /lua
parentfix incorrect emmylua docstring (diff)
downloadmason-6e390ac29a97e8f07661a3dbb2f7e4ddf10fdc11.tar
mason-6e390ac29a97e8f07661a3dbb2f7e4ddf10fdc11.tar.gz
mason-6e390ac29a97e8f07661a3dbb2f7e4ddf10fdc11.tar.bz2
mason-6e390ac29a97e8f07661a3dbb2f7e4ddf10fdc11.tar.lz
mason-6e390ac29a97e8f07661a3dbb2f7e4ddf10fdc11.tar.xz
mason-6e390ac29a97e8f07661a3dbb2f7e4ddf10fdc11.tar.zst
mason-6e390ac29a97e8f07661a3dbb2f7e4ddf10fdc11.zip
breaking change: remove federated server mechanism (#207)
Users will have to reinstall the following servers: - cssls - html - jsonls
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/servers/init.lua14
-rw-r--r--lua/nvim-lsp-installer/settings.lua6
2 files changed, 2 insertions, 18 deletions
diff --git a/lua/nvim-lsp-installer/servers/init.lua b/lua/nvim-lsp-installer/servers/init.lua
index 3f252b83..1e6cc056 100644
--- a/lua/nvim-lsp-installer/servers/init.lua
+++ b/lua/nvim-lsp-installer/servers/init.lua
@@ -5,20 +5,12 @@ local settings = require "nvim-lsp-installer.settings"
local M = {}
----@param name string
----@return string
-local function vscode_langservers_extracted(name)
- return settings.current.allow_federated_servers and "vscode-langservers-extracted"
- or "vscode-langservers-extracted_" .. name
-end
-
-- By default the install dir will be the same as the server's name.
-- There are two cases when servers should install to a different location:
--- 1. federated server installations, (see :help nvim-lsp-installer-settings)
--- 2. legacy reasons, where some servers were previously installed to a location different than their name
+-- 1. Legacy reasons, where some servers were previously installed to a location different than their name
+-- 2. There is a breaking change to a server that motivates changing its install dir (e.g. to "bust" existing installations).
local INSTALL_DIRS = {
["bashls"] = "bash",
- ["cssls"] = vscode_langservers_extracted "cssls",
["dockerls"] = "dockerfile",
["elixirls"] = "elixir",
["elmls"] = "elm",
@@ -26,9 +18,7 @@ local INSTALL_DIRS = {
["eslintls"] = "eslint",
["gopls"] = "go",
["hls"] = "haskell",
- ["html"] = vscode_langservers_extracted "html",
["intelephense"] = "php",
- ["jsonls"] = vscode_langservers_extracted "jsonls",
["kotlin_language_server"] = "kotlin",
["phpactor"] = "phpactor-source",
["purescriptls"] = "purescript",
diff --git a/lua/nvim-lsp-installer/settings.lua b/lua/nvim-lsp-installer/settings.lua
index 66c59e19..a9a4bf74 100644
--- a/lua/nvim-lsp-installer/settings.lua
+++ b/lua/nvim-lsp-installer/settings.lua
@@ -40,12 +40,6 @@ local DEFAULT_SETTINGS = {
-- debugging issues with server installations.
log_level = vim.log.levels.INFO,
- -- Whether to allow LSP servers to share the same installation directory. For some servers, this effectively causes
- -- more than one server to be installed (and uninstalled) when executing `:LspInstall` and `:LspUninstall`. For
- -- example, installing `cssls` will also install both `jsonls` and `html` (and the other ways around), as these all
- -- share the same underlying package.
- allow_federated_servers = true,
-
-- Limit for the maximum amount of servers to be installed at the same time. Once this limit is reached, any further
-- servers that are requested to be installed will be put in a queue.
max_concurrent_installers = 4,