diff options
| author | William Boman <william@redwill.se> | 2022-05-10 12:20:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-10 12:20:22 +0200 |
| commit | f60f53d8c2d304e8e6d335215ea0b781f80599f0 (patch) | |
| tree | d6a08758faef25f0e84061d477adc0388f94d2ca /lua/nvim-lsp-installer.lua | |
| parent | run autogen_metadata.lua (diff) | |
| download | mason-f60f53d8c2d304e8e6d335215ea0b781f80599f0.tar mason-f60f53d8c2d304e8e6d335215ea0b781f80599f0.tar.gz mason-f60f53d8c2d304e8e6d335215ea0b781f80599f0.tar.bz2 mason-f60f53d8c2d304e8e6d335215ea0b781f80599f0.tar.lz mason-f60f53d8c2d304e8e6d335215ea0b781f80599f0.tar.xz mason-f60f53d8c2d304e8e6d335215ea0b781f80599f0.tar.zst mason-f60f53d8c2d304e8e6d335215ea0b781f80599f0.zip | |
chore: remove deprecated modules (#682)
- https://github.com/williamboman/nvim-lsp-installer/wiki/Async-infrastructure-changes-notice
- https://github.com/williamboman/nvim-lsp-installer/discussions/636
Diffstat (limited to 'lua/nvim-lsp-installer.lua')
| -rw-r--r-- | lua/nvim-lsp-installer.lua | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lua/nvim-lsp-installer.lua b/lua/nvim-lsp-installer.lua index 631f66a2..e65fb1dc 100644 --- a/lua/nvim-lsp-installer.lua +++ b/lua/nvim-lsp-installer.lua @@ -56,15 +56,6 @@ M.info_window = { end, } ----Deprecated. Use info_window.open(). -function M.display() - notify( - "The lsp_installer.display() function has been deprecated. Use lsp_installer.info_window.open() instead.", - vim.log.levels.WARN - ) - status_win().open() -end - function M.get_install_completion() local result = {} local server_names = servers.get_available_server_names() @@ -271,6 +262,10 @@ end ---@deprecated Setup servers directly via lspconfig instead. See https://github.com/williamboman/nvim-lsp-installer/discussions/636 ---@param cb fun(server: Server) @Callback to be executed whenever a server is ready to be set up. function M.on_server_ready(cb) + notify( + ".on_server_ready() has been deprecated. Set up servers directly via lspconfig instead. See https://github.com/williamboman/nvim-lsp-installer/discussions/636", + vim.log.levels.WARN + ) dispatcher.register_server_ready_callback(cb) vim.schedule(function() local installed_servers = servers.get_installed_servers() |
