From 38e489a12e991e0dd762de1adac976920fb438b5 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 10 Sep 2021 10:10:18 +0200 Subject: fix: add compat shim for handler change in core (#1248) Add a compatibility shim to `util.lua` adapting to change in handler signature and use it where needed. (Skip `rust-analyzer` and `denols` since their requests don't use handlers.) --- lua/lspconfig/rust_analyzer.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lua/lspconfig/rust_analyzer.lua') diff --git a/lua/lspconfig/rust_analyzer.lua b/lua/lspconfig/rust_analyzer.lua index 1f47dc2b..bbe86b3d 100644 --- a/lua/lspconfig/rust_analyzer.lua +++ b/lua/lspconfig/rust_analyzer.lua @@ -1,10 +1,9 @@ local configs = require 'lspconfig/configs' local util = require 'lspconfig/util' -local lsp = vim.lsp local function reload_workspace(bufnr) bufnr = util.validate_bufnr(bufnr) - lsp.buf_request(bufnr, 'rust-analyzer/reloadWorkspace', nil, function(err, _, result, _) + vim.lsp.buf_request(bufnr, 'rust-analyzer/reloadWorkspace', nil, function(err) if err then error(tostring(err)) end -- cgit v1.2.3-70-g09d2