diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2024-07-15 10:03:12 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2024-07-15 10:03:12 -0300 |
| commit | 958ede189f5b0cb712df5e0a363cc182eba6e56d (patch) | |
| tree | c1af0f25127a4139343aacf3f2252d9016d0a195 /lua | |
| parent | a664e412294f3fcf4928a9fd0b6fc01fb5ea43d0 (diff) | |
| download | nvim-conf-958ede189f5b0cb712df5e0a363cc182eba6e56d.tar.gz nvim-conf-958ede189f5b0cb712df5e0a363cc182eba6e56d.zip | |
Fix: get_active_clients deprecate
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/pi/php/lsp.lua | 4 |
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 |