fixup: do not use deprecated server_ready()

pull/429/head
weirdgiraffe 3 months ago
parent aaab3aa4ee
commit edfadaeaeb
No known key found for this signature in database
GPG Key ID: 1F15F3CEAD2926CA

@ -5,7 +5,7 @@ local codelens = require('vim.lsp.codelens')
-- runs callback if gopls supports codelens
local function with_gopls_codelens(callback)
-- prevent errors from codelens if lsp is not ready
if not vim.lsp.buf.server_ready() then
if not utils.gopls_attached() then
return
end
for _, gopls in pairs(vim.lsp.get_active_clients({ name = 'gopls', bufnr = 0 })) do

Loading…
Cancel
Save