diff --git a/lua/go/lsp.lua b/lua/go/lsp.lua index b26a2366f..1e0c4956c 100644 --- a/lua/go/lsp.lua +++ b/lua/go/lsp.lua @@ -37,7 +37,7 @@ local on_attach = function(client, bufnr) end if _GO_NVIM_CFG.lsp_codelens then - vim.lsp.codelens.refresh({ bufnr = 0 }) + vim.lsp.codelens.enable(true, { bufnr = 0 }) end local keymaps if _GO_NVIM_CFG.lsp_keymaps == true then