Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
chore: remove deprecation notifications
Browse files Browse the repository at this point in the history
These methods are still deprecated, but will remain until a substitute
is implemented and available.
  • Loading branch information
williamboman committed May 10, 2022
1 parent 2be5d77 commit 896831c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lua/nvim-lsp-installer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ 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
assert(
not settings.uses_new_setup,
"Please set up servers directly via lspconfig instead of using .on_server_ready() (this method is now deprecated)! Refer to :h nvim-lsp-installer-quickstart for more information."
)
dispatcher.register_server_ready_callback(cb)
vim.schedule(function()
Expand Down
4 changes: 0 additions & 4 deletions lua/nvim-lsp-installer/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ function M.Server:setup(opts)
not settings.uses_new_setup,
"Please set up servers directly via lspconfig instead of going through nvim-lsp-installer (this method is now deprecated)! Refer to :h nvim-lsp-installer-quickstart for more information."
)
notify(
"server:setup() has been deprecated. Set up servers directly via lspconfig instead. See https://github.com/williamboman/nvim-lsp-installer/discussions/636",
vim.log.levels.WARN
)
self:setup_lsp(opts)
if not (opts.autostart == false) then
self:attach_buffers()
Expand Down

0 comments on commit 896831c

Please sign in to comment.