From e8c26c70e27d468cec11926890105d61f99f9218 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 10 Oct 2023 11:54:33 +0200 Subject: [PATCH] refactor(eslint): use util.get_clients instead of deprecated method --- lua/lazyvim/plugins/extras/linting/eslint.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/linting/eslint.lua b/lua/lazyvim/plugins/extras/linting/eslint.lua index 32498cb5..1fea3c8c 100644 --- a/lua/lazyvim/plugins/extras/linting/eslint.lua +++ b/lua/lazyvim/plugins/extras/linting/eslint.lua @@ -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