diff --git a/lua/go/codelens.lua b/lua/go/codelens.lua index ed4b460..6428ea2 100644 --- a/lua/go/codelens.lua +++ b/lua/go/codelens.lua @@ -53,7 +53,7 @@ function M.refresh() return end if _GO_NVIM_CFG.lsp_codelens == true then - vim.lsp.codelens.refresh() + vim.lsp.codelens.refresh({ bufnr = 0 }) else log('refresh codelens') vim.lsp.codelens.clear() diff --git a/lua/go/lsp.lua b/lua/go/lsp.lua index cf66bef..bcdd6ef 100644 --- a/lua/go/lsp.lua +++ b/lua/go/lsp.lua @@ -39,7 +39,7 @@ local on_attach = function(client, bufnr) end if _GO_NVIM_CFG.lsp_codelens then - vim.lsp.codelens.refresh() + vim.lsp.codelens.refresh({ bufnr = 0 }) end local keymaps if _GO_NVIM_CFG.lsp_keymaps == true then