From db04cb9e6f0b4ff47d4cd187e5426eca4b652d15 Mon Sep 17 00:00:00 2001 From: Ashkan Kiani Date: Tue, 26 Nov 2019 06:18:55 -0800 Subject: Add docs and vscode names. (#53) * Add vscode name for leanls * Add vscode name for fortls * Add vscode name for solargraph * Add vscode name for ccls * Add vscode name for elmls * Update for new lsp.callbacks and add note. --- lua/nvim_lsp/skeleton.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua/nvim_lsp/skeleton.lua') 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 -- cgit v1.2.3-70-g09d2