From 37c510caed0e2a717f3d0c32a4d81370f9bfe533 Mon Sep 17 00:00:00 2001 From: Iron_E Date: Sat, 14 Nov 2020 22:55:35 -0500 Subject: Use 'not config.callbacks' over 'not lsp.callbacks' --- lua/lspconfig/configs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/lspconfig/configs.lua b/lua/lspconfig/configs.lua index 8237d0f8..c67d6a8d 100644 --- a/lua/lspconfig/configs.lua +++ b/lua/lspconfig/configs.lua @@ -34,7 +34,7 @@ function configs.__newindex(t, config_name, config_def) -- which is why this is a function, so that it can refer to the settings -- object on the server. local function add_handlers(config) - assert(not lsp.callbacks, "lsp.callbacks has been deprecated. See here for more: https://github.com/neovim/neovim/pull/12655") + assert(not config.callbacks, "lsp.callbacks has been deprecated. See here for more: https://github.com/neovim/neovim/pull/12655") config.handlers["window/logMessage"] = function(err, method, params, client_id) if params and params.type <= config.log_level then -- TODO(ashkan) remove this after things have settled. -- cgit v1.3