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

gopls -debug=localhost:8080 #464

Closed
gonzaloserrano opened this issue May 23, 2024 · 2 comments
Closed

gopls -debug=localhost:8080 #464

gonzaloserrano opened this issue May 23, 2024 · 2 comments

Comments

@gonzaloserrano
Copy link
Contributor

Hi!

What's the proper way to pass flags to gopls within go.nvim to enable debugging? i.e gopls -debug=localhost:8080

The goal is to troubleshoot golang/go#66647

Thanks

@ray-x
Copy link
Owner

ray-x commented May 23, 2024

go.nvim/lua/go/lsp.lua

Lines 215 to 220 in 294d65c

if _GO_NVIM_CFG.gopls_cmd then
gopls.cmd = _GO_NVIM_CFG.gopls_cmd
else
gopls.cmd = { 'gopls' }
require('go.install').install('gopls')
end

So in go.nvim config
set config to

{
...
gopls_cmd = { 'gopls',  '-debug=localhost:8080'}
...
}

@gonzaloserrano
Copy link
Contributor Author

Thanks!

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

2 participants