aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-01-03 06:26:45 -0800
committerMichael Lingelbach <m.j.lbach@gmail.com>2021-01-03 06:53:47 -0800
commitf60ba8558fa9ecdf423837e980ac560341a503ab (patch)
tree6fa547459600853a542cd8f7d2a4646586b35cee /lua
parentRemove all installers and install logic (diff)
downloadnvim-lspconfig-f60ba8558fa9ecdf423837e980ac560341a503ab.tar
nvim-lspconfig-f60ba8558fa9ecdf423837e980ac560341a503ab.tar.gz
nvim-lspconfig-f60ba8558fa9ecdf423837e980ac560341a503ab.tar.bz2
nvim-lspconfig-f60ba8558fa9ecdf423837e980ac560341a503ab.tar.lz
nvim-lspconfig-f60ba8558fa9ecdf423837e980ac560341a503ab.tar.xz
nvim-lspconfig-f60ba8558fa9ecdf423837e980ac560341a503ab.tar.zst
nvim-lspconfig-f60ba8558fa9ecdf423837e980ac560341a503ab.zip
Add compatibility functions with deprecation notice
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/lua/lspconfig.lua b/lua/lspconfig.lua
index b6909f2a..9b9dbcf4 100644
--- a/lua/lspconfig.lua
+++ b/lua/lspconfig.lua
@@ -10,6 +10,35 @@ function M.available_servers()
return vim.tbl_keys(configs)
end
+function M.installable_servers()
+ print("deprecated, see https://github.com/neovim/neovim/wiki/Following-HEAD")
+end
+
+-- Called from plugin/lspconfig.vim because it requires knowing that the last
+-- script in scriptnames to be executed is lspconfig.
+function M._root._setup()
+ M._root.commands = {
+ LspInstall = {
+ function()
+ print("deprecated, see https://github.com/neovim/neovim/wiki/Following-HEAD")
+ end;
+ "-nargs=?";
+ "-complete=custom,v:lua.lsp_complete_installable_servers";
+ description = '`:LspInstall {name}` installs a server under stdpath("cache")/lspconfig/{name}';
+ };
+ LspInstallInfo = {
+ function()
+ print("deprecated, see https://github.com/neovim/neovim/wiki/Following-HEAD")
+ end;
+ "-nargs=?";
+ "-complete=custom,v:lua.lsp_complete_servers";
+ description = 'Print installation info for {name} if one is specified, or all installable servers.';
+ };
+ };
+
+ M.util.create_module_commands("_root", M._root.commands)
+end
+
local mt = {}
function mt:__index(k)
if configs[k] == nil then