Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lspconfig使用记录 #1

Open
daiday opened this issue May 18, 2023 · 0 comments
Open

lspconfig使用记录 #1

daiday opened this issue May 18, 2023 · 0 comments

Comments

@daiday
Copy link
Owner

daiday commented May 18, 2023

记录一下nvim下,开启go的lsp的一些问题。

  1. 开始需要的是没有root dir,很简单,查了一下文档,root pattern需要有go.work,go.mod或者.git。我啥都没搞。go mod init一下就好了。
  2. 接下来,虽然可以看到我安装了gopls,也在custom/config/lspconfig.lua中加入了gopls,为啥Client还是0?不知道为什么,即使是我在mason中安装了gopls,也还要再go下安装一遍:
go install golang.org/x/tools/gopls@latest

不知道为什么。

@daiday daiday closed this as completed Jun 17, 2023
@daiday daiday reopened this Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant