refactor(eslint): use util.get_clients instead of deprecated method
This commit is contained in:
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user