Merge branch 'master' of github.com:ray-x/go.nvim

pull/479/head
ray-x 4 months ago
commit 9af9ab16fc

@ -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])

@ -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()

@ -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

@ -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
```

Loading…
Cancel
Save