From bc5cd63660fcf18b3a455209db440217a04d0624 Mon Sep 17 00:00:00 2001 From: Miroslav Lincovsci Date: Mon, 23 Sep 2024 23:18:23 +0300 Subject: [PATCH] fix(cookbook): migrate from `vim.lsp.get_active_clients` to `vim.lsp.get_clients` --- cookbook.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook.md b/cookbook.md index 91d3a60..f6ceec5 100644 --- a/cookbook.md +++ b/cookbook.md @@ -776,7 +776,7 @@ local LSPActive = { -- Or complicate things a bit and get the servers names provider = function() local names = {} - for i, server in pairs(vim.lsp.get_active_clients({ bufnr = 0 })) do + for i, server in pairs(vim.lsp.get_clients({ bufnr = 0 })) do table.insert(names, server.name) end return " [" .. table.concat(names, " ") .. "]"