From c78332d58d5ba251a324f655624bbc59b80c8564 Mon Sep 17 00:00:00 2001 From: Iron-E <36409591+Iron-E@users.noreply.github.com> Date: Fri, 13 Nov 2020 04:04:35 -0500 Subject: Use handlers instead of callbacks The recent changes in neovim head cause loading this file to create an error. These changes have resolved that on my machine --- lua/lspconfig/jdtls.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/lspconfig') diff --git a/lua/lspconfig/jdtls.lua b/lua/lspconfig/jdtls.lua index be9ba6e8..a71e634f 100644 --- a/lua/lspconfig/jdtls.lua +++ b/lua/lspconfig/jdtls.lua @@ -1,6 +1,6 @@ local configs = require 'lspconfig/configs' local util = require 'lspconfig/util' -local callbacks = require 'vim.lsp.callbacks' +local handlers = require 'vim.lsp.handlers' local path = util.path local server_name = "jdtls" @@ -101,7 +101,7 @@ configs[server_name] = { jvm_args = {}; os_config = nil; }; - callbacks = { + handlers = { -- Due to an invalid protocol implementation in the jdtls we have to -- conform these to be spec compliant. -- https://github.com/eclipse/eclipse.jdt.ls/issues/376 @@ -113,7 +113,7 @@ configs[server_name] = { end end - callbacks['textDocument/codeAction'](a, b, actions) + handlers['textDocument/codeAction'](a, b, actions) end }; }; -- cgit v1.2.3-70-g09d2