aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp/skeleton.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim_lsp/skeleton.lua')
-rw-r--r--lua/nvim_lsp/skeleton.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/nvim_lsp/skeleton.lua b/lua/nvim_lsp/skeleton.lua
index 9ab91598..ff26e14b 100644
--- a/lua/nvim_lsp/skeleton.lua
+++ b/lua/nvim_lsp/skeleton.lua
@@ -39,7 +39,9 @@ function skeleton.__newindex(t, template_name, template)
local function add_callbacks(config)
config.callbacks["window/logMessage"] = function(err, method, params, client_id)
if params and params.type <= config.log_level then
- lsp.default_callbacks[method](err, method, params, client_id)
+ -- TODO(ashkan) remove this after things have settled.
+ assert(lsp.callbacks, "Please update neovim master. This is an incompatible interface.")
+ lsp.callbacks[method](err, method, params, client_id)
end
end