aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorNAKAI Tsuyoshi <82267684+uga-rosa@users.noreply.github.com>2023-05-29 15:24:36 +0900
committerGitHub <noreply@github.com>2023-05-29 14:24:36 +0800
commite6e1d5ccfc510b7ed9115a33fdfdcd122b8ce08e (patch)
tree71bbc3629b23f92175281bcc5ce41b4b3507b23e /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-e6e1d5ccfc510b7ed9115a33fdfdcd122b8ce08e.tar
nvim-lspconfig-e6e1d5ccfc510b7ed9115a33fdfdcd122b8ce08e.tar.gz
nvim-lspconfig-e6e1d5ccfc510b7ed9115a33fdfdcd122b8ce08e.tar.bz2
nvim-lspconfig-e6e1d5ccfc510b7ed9115a33fdfdcd122b8ce08e.tar.lz
nvim-lspconfig-e6e1d5ccfc510b7ed9115a33fdfdcd122b8ce08e.tar.xz
nvim-lspconfig-e6e1d5ccfc510b7ed9115a33fdfdcd122b8ce08e.tar.zst
nvim-lspconfig-e6e1d5ccfc510b7ed9115a33fdfdcd122b8ce08e.zip
fix(denols): pass config to vim.lsp.handlers (#2638)
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/denols.lua8
1 files changed, 4 insertions, 4 deletions
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,
},