Fix deprecated get_active_clients

This commit is contained in:
LVIM ORG
2024-05-19 12:52:54 +03:00
parent 139e363dd5
commit e6afff238c
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ local function get_appropriate_client(bufnr, capability)
local clients, use_client
if _G._outline_nvim_has[8] then
clients = l.get_active_clients({ bufnr = bufnr })
clients = l.get_clients({ bufnr = bufnr })
for _, client in ipairs(clients) do
if _check_client(client, capability) then
use_client = client

View File

@@ -3,7 +3,7 @@ local config = require('outline.config')
local M = {}
function M.is_buf_attached_to_lsp(bufnr)
local clients = vim.lsp.get_active_clients({ bufnr = bufnr or 0 })
local clients = vim.lsp.get_clients({ bufnr = bufnr or 0 })
return clients ~= nil and #clients > 0
end