talira

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.

  1. YouCompleteMe Fast as-you-type fuzzy code completion and refactoring engine for Vim
  2. coc.nvim VS Code-like completion, diagnostics and language servers for Vim and Neovim
  3. LazyVim Neovim setup powered by lazy.nvim that turns Neovim into a full IDE you can still customize
  4. AstroNvim An aesthetic, feature-rich and extensible Neovim configuration
  5. LiteIDE A simple, open source, cross-platform Go IDE
  6. NvChad Blazing fast Neovim config providing solid defaults and a beautiful UI

Compare vim-go with the top 3