aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/init.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/nvim-lsp-installer/servers/init.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/nvim-lsp-installer/servers/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/init.lua14
1 files changed, 2 insertions, 12 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",