From d3c7e03113737bd751b58087d01774184247be8c Mon Sep 17 00:00:00 2001 From: ray-x Date: Tue, 21 May 2024 12:22:30 +1000 Subject: [PATCH] for_each_buffer_client deprecated --- lua/navigator/definition.lua | 2 +- lua/navigator/reference.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/navigator/definition.lua b/lua/navigator/definition.lua index 7e40fa4..ac62f1e 100644 --- a/lua/navigator/definition.lua +++ b/lua/navigator/definition.lua @@ -191,7 +191,7 @@ local def = function() local bufnr = vim.api.nvim_get_current_buf() local ref_params = vim.lsp.util.make_position_params() - vim.lsp.for_each_buffer_client(bufnr, function(client, _, _bufnr) + util.for_each_buffer_client(bufnr, function(client, _, _bufnr) -- if client.resolved_capabilities.goto_definition then if client.server_capabilities.definitionProvider then client.request('textDocument/definition', ref_params, definition_hdlr, _bufnr) diff --git a/lua/navigator/reference.lua b/lua/navigator/reference.lua index 7c119b9..6a934ba 100644 --- a/lua/navigator/reference.lua +++ b/lua/navigator/reference.lua @@ -293,7 +293,7 @@ local ref = function() local bufnr = vim.api.nvim_get_current_buf() local ref_params = vim.lsp.util.make_position_params() - vim.lsp.for_each_buffer_client(bufnr, function(client, _, _) + util.for_each_buffer_client(bufnr, function(client, _, _) if client.server_capabilities.referencesProvider then client.request('textDocument/references', ref_params, ref_hdlr, bufnr) end