From e6e1d5ccfc510b7ed9115a33fdfdcd122b8ce08e Mon Sep 17 00:00:00 2001 From: NAKAI Tsuyoshi <82267684+uga-rosa@users.noreply.github.com> Date: Mon, 29 May 2023 15:24:36 +0900 Subject: fix(denols): pass config to vim.lsp.handlers (#2638) --- lua/lspconfig/server_configurations/denols.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lua/lspconfig/server_configurations') diff --git a/lua/lspconfig/server_configurations/denols.lua b/lua/lspconfig/server_configurations/denols.lua index 6693e0a3..bb5a43f7 100644 --- a/lua/lspconfig/server_configurations/denols.lua +++ b/lua/lspconfig/server_configurations/denols.lua @@ -43,7 +43,7 @@ local function virtual_text_document(uri, client) virtual_text_document_handler(uri, result, client) end -local function denols_handler(err, result, ctx) +local function denols_handler(err, result, ctx, config) if not result or vim.tbl_isempty(result) then return nil end @@ -58,7 +58,7 @@ local function denols_handler(err, result, ctx) end end - lsp.handlers[ctx.method](err, result, ctx) + lsp.handlers[ctx.method](err, result, ctx, config) end return { @@ -82,11 +82,11 @@ return { ['textDocument/definition'] = denols_handler, ['textDocument/typeDefinition'] = denols_handler, ['textDocument/references'] = denols_handler, - ['workspace/executeCommand'] = function(err, result, context) + ['workspace/executeCommand'] = function(err, result, context, config) if context.params.command == 'deno.cache' then buf_cache(context.bufnr, vim.lsp.get_client_by_id(context.client_id)) else - lsp.handlers[context.method](err, result, context) + lsp.handlers[context.method](err, result, context, config) end end, }, -- cgit v1.2.3-70-g09d2