aboutsummaryrefslogtreecommitdiffstats
path: root/lua/pi/php/lsp.lua
diff options
context:
space:
mode:
authorElvis Claros Castro <elvis@claros.ar>2024-07-15 10:03:12 -0300
committerElvis Claros Castro <elvis@claros.ar>2024-07-15 10:03:12 -0300
commit958ede189f5b0cb712df5e0a363cc182eba6e56d (patch)
treec1af0f25127a4139343aacf3f2252d9016d0a195 /lua/pi/php/lsp.lua
parenta664e412294f3fcf4928a9fd0b6fc01fb5ea43d0 (diff)
downloadnvim-conf-958ede189f5b0cb712df5e0a363cc182eba6e56d.tar.gz
nvim-conf-958ede189f5b0cb712df5e0a363cc182eba6e56d.zip
Fix: get_active_clients deprecate
Diffstat (limited to 'lua/pi/php/lsp.lua')
-rw-r--r--lua/pi/php/lsp.lua4
1 files changed, 2 insertions, 2 deletions
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