diff --git a/lua/go.lua b/lua/go.lua index f6979a9..c1e9448 100644 --- a/lua/go.lua +++ b/lua/go.lua @@ -169,7 +169,7 @@ _GO_NVIM_CFG = { local function reset_tbl(tbl) for k, _ in pairs(tbl) do if type(tbl[k]) == 'table' then - if vim.islist(tbl[k]) then + if (vim.islist or vim.tbl_islist)(tbl[k]) then tbl[k] = {} else reset_tbl(tbl[k]) 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 diff --git a/playground/README.md b/playground/README.md index 6422488..2dcb098 100644 --- a/playground/README.md +++ b/playground/README.md @@ -4,7 +4,7 @@ Start with (may need to restart nvim after the first time) ```shell cd sampleApp -nvim -u ../init.lua main.go +nvim -u ../init_lazy.lua main.go ```