diff --git a/lua/go/codelens.lua b/lua/go/codelens.lua index f991c4bd4..f6d2b9270 100644 --- a/lua/go/codelens.lua +++ b/lua/go/codelens.lua @@ -53,7 +53,7 @@ function M.refresh() if _GO_NVIM_CFG.lsp_codelens == true then local found = false if not found then - for _, lsp in pairs(vim.lsp.get_active_clients()) do + for _, lsp in pairs(vim.lsp.buf_get_clients(0)) do if lsp.name == 'gopls' then found = true break