aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-05-11 00:30:14 +0200
committerWilliam Boman <william@redwill.se>2022-05-11 00:30:15 +0200
commit896831cf149e2bad9cb969bd94b92bda9f86939a (patch)
tree5332de155b42109c4a18c666ace82d9eef9d2789 /lua
parentrun autogen_metadata.lua (diff)
downloadmason-896831cf149e2bad9cb969bd94b92bda9f86939a.tar
mason-896831cf149e2bad9cb969bd94b92bda9f86939a.tar.gz
mason-896831cf149e2bad9cb969bd94b92bda9f86939a.tar.bz2
mason-896831cf149e2bad9cb969bd94b92bda9f86939a.tar.lz
mason-896831cf149e2bad9cb969bd94b92bda9f86939a.tar.xz
mason-896831cf149e2bad9cb969bd94b92bda9f86939a.tar.zst
mason-896831cf149e2bad9cb969bd94b92bda9f86939a.zip
chore: remove deprecation notifications
These methods are still deprecated, but will remain until a substitute is implemented and available.
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer.lua6
-rw-r--r--lua/nvim-lsp-installer/server.lua4
2 files changed, 3 insertions, 7 deletions
diff --git a/lua/nvim-lsp-installer.lua b/lua/nvim-lsp-installer.lua
index e65fb1dc..b53751e2 100644
--- a/lua/nvim-lsp-installer.lua
+++ b/lua/nvim-lsp-installer.lua
@@ -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()
diff --git a/lua/nvim-lsp-installer/server.lua b/lua/nvim-lsp-installer/server.lua
index 5224cd7e..26f35d00 100644
--- a/lua/nvim-lsp-installer/server.lua
+++ b/lua/nvim-lsp-installer/server.lua
@@ -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()