Go
Onivim supports the vscode-go extension:
Several language integration features are supported, like:
- Code completion
- Go-to definition
- Formatting
- Signature help
Setup
- Install the 'go' extension via the extensions pane
- Restart Onivim
Recommended configuration
The vscode-go
extension supports various toolchains, but we recommend using the gopls
language server:
- Run
go get golang.org/x/tools/gopls@latest
- Set
"go.useLanguageServer": true
in your configuration.
For more information, see the gopls
documentation