diff options
| author | Iron-E <36409591+Iron-E@users.noreply.github.com> | 2020-11-13 04:04:35 -0500 |
|---|---|---|
| committer | Iron_E <code.iron.e@gmail.com> | 2020-11-15 02:21:43 -0500 |
| commit | c78332d58d5ba251a324f655624bbc59b80c8564 (patch) | |
| tree | 611ab20b8b5d9cb72542710115a507d606839a65 /lua/lspconfig/jdtls.lua | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-lspconfig-c78332d58d5ba251a324f655624bbc59b80c8564.tar nvim-lspconfig-c78332d58d5ba251a324f655624bbc59b80c8564.tar.gz nvim-lspconfig-c78332d58d5ba251a324f655624bbc59b80c8564.tar.bz2 nvim-lspconfig-c78332d58d5ba251a324f655624bbc59b80c8564.tar.lz nvim-lspconfig-c78332d58d5ba251a324f655624bbc59b80c8564.tar.xz nvim-lspconfig-c78332d58d5ba251a324f655624bbc59b80c8564.tar.zst nvim-lspconfig-c78332d58d5ba251a324f655624bbc59b80c8564.zip | |
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
Diffstat (limited to 'lua/lspconfig/jdtls.lua')
| -rw-r--r-- | lua/lspconfig/jdtls.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 }; }; |
