Go development plugin for Vim and Neovim: build, test, debug, gopls completion and refactoring
open sourceBSD-3-Clausefree
vim-go adds Go language support to Vim and Neovim. It builds, installs and tests packages (:GoBuild, :GoTest, :GoTestFunc), runs files, debugs with integrated Delve, and uses gopls for completion, go-to-definition, documentation, implements, callees and referrers, with type-safe renaming. It formats on save while keeping the cursor and undo history, manages imports, shows test coverage, adds or removes struct tags, and runs linters, vet and errcheck. :GoInstallBinaries installs the Go tools it needs. It needs Vim 8.2.5072 or Neovim 0.4.0 or later.
Problems it solves
- write Go in Vim with completion, go-to-definition and refactoring
- run and debug Go tests without leaving Vim
- set up Neovim for Go development
Features
- build, install and test Go packages from Vim
- debugging with Delve
- completion and navigation through gopls
- type-safe renaming
- format on save keeping cursor and undo history
- test coverage display
- struct tag editing
- lint, vet and errcheck integration
Alternatives
The same job
These do what vim-go does.
- YouCompleteMe Fast as-you-type fuzzy code completion and refactoring engine for Vim
- coc.nvim VS Code-like completion, diagnostics and language servers for Vim and Neovim
- LazyVim Neovim setup powered by lazy.nvim that turns Neovim into a full IDE you can still customize
- AstroNvim An aesthetic, feature-rich and extensible Neovim configuration
- LiteIDE A simple, open source, cross-platform Go IDE
- NvChad Blazing fast Neovim config providing solid defaults and a beautiful UI
