From 958ede189f5b0cb712df5e0a363cc182eba6e56d Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Mon, 15 Jul 2024 10:03:12 -0300 Subject: Fix: get_active_clients deprecate --- lua/pi/php/lsp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/pi/php/lsp.lua') diff --git a/lua/pi/php/lsp.lua b/lua/pi/php/lsp.lua index 37e0bc0..24711a1 100644 --- a/lua/pi/php/lsp.lua +++ b/lua/pi/php/lsp.lua @@ -12,7 +12,7 @@ end ---@param server_name string ---@return table|nil, boolean local get_client = function(server_name) - local clients = vim.lsp.get_active_clients { name = server_name } + local clients = vim.lsp.get_clients { name = server_name } local client = clients[1] or nil local new_instance = false @@ -118,7 +118,7 @@ end ---@param server_name string ---@return integer|nil lsp.get_lsp_buffer = function(server_name) - local clients = vim.lsp.get_active_clients { name = server_name } + local clients = vim.lsp.get_clients { name = server_name } if #clients == 0 then return nil end -- cgit v1.2.3