diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-10-25 22:09:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-25 22:09:41 +0100 |
commit | a22fe09b90a52f451d9fd8d3372b8c390dd1dc1a (patch) | |
tree | 13387c62ee5181a845dead8d9d11ab3048fc52e5 /runtime/lua/vim | |
parent | 4ba5b4a8646106252531610c46afffc3b021efcd (diff) | |
parent | 1f0f92f8ec0ca94c47707cfebc9eeff561715368 (diff) | |
download | rneovim-a22fe09b90a52f451d9fd8d3372b8c390dd1dc1a.tar.gz rneovim-a22fe09b90a52f451d9fd8d3372b8c390dd1dc1a.tar.bz2 rneovim-a22fe09b90a52f451d9fd8d3372b8c390dd1dc1a.zip |
Merge pull request #13154 from fsouza/fix-callback-logic
[RDY] lsp: fix fallback for callback in method_unsupported
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index fad213212a..1a0015e2db 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -1029,7 +1029,7 @@ function lsp.buf_request(bufnr, method, params, callback) -- error message. if not method_supported then local unsupported_err = lsp._unsupported_method(method) - local cb = callback or lsp.callbacks['method'] + local cb = callback or lsp.callbacks[method] if cb then cb(unsupported_err, method, bufnr) end |