使用coc.nvim开发golang代码时报错
[coc.nvim] Gopls was built with Go version 1.17, whhich will be unsupported by gopls v0.13.0. Please uIpgrade to Go 1.18
or later and reinstall gopls. If you can't upgrade and vwant this message to go away, please install gopls v0.110. See
https://go.dev/s/gopls-support-policy for more detaails
一直没有找到解决的办法,按照提示,尝试了将go版本升级,也尝试了将gopls降级,最后都没有解决
后面研究了一下coc-go之后发现,最终解决办法
打开vim之后运行下面的命令,成功后会提示你已经更新到新的gopls了,之后就没什么问题了
:CocCommand go.install.gopls
具体coc还有哪些配置能用可以看这里:https://github.com/josa42/coc-go