refactor(eslint): use util.get_clients instead of deprecated method

This commit is contained in:
Folke Lemaitre 2023-10-10 11:54:33 +02:00
parent 599798a366
commit e8c26c70e2
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -21,7 +21,7 @@ return {
return
end
local client = vim.lsp.get_active_clients({ bufnr = event.buf, name = "eslint" })[1]
local client = require("lazyvim.util").get_clients({ bufnr = event.buf, name = "eslint" })[1]
if client then
local diag = vim.diagnostic.get(event.buf, { namespace = vim.lsp.diagnostic.get_namespace(client.id) })
if #diag > 0 then