go.nvim: master requires neovim 0.12, the newest tag is built for 0.11, and the install text still names an archived parser plugin
G'day Nvimer, Joyful Gopher: Explore the Feature-Packed Go Plugin for Neovim
At a glance
- What is it?
- A Lua Neovim plugin for Go development that wraps gopls, treesitter, Dlv and a set of AI commands, and whose own documentation contradicts itself about the dependency it was built to escape. Reading it means keeping three version numbers apart: the master branch, the v0.11 tag, and the Neovim release each one expects.
- Who is it for?
- go.nvim earns its place for people who already live in Neovim and want gopls navigation, AST driven generation and Dlv in one keymap set, but read three things before installing. Pin your decision to a version pair, master for neovim 0.12 or the v0.11 tag for 0.11, because the project itself declines to guarantee 0.11 on master.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 3 days ago.
- What is it written in?
- Mainly Lua, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- ray-x/go.nvim2,661 ★ · -4
| Repository | 2026-10-04 | 2026-11-22 |
|---|---|---|
| ray-x/go.nvim | 2.7k | 2.7k |
-4 Stars in the last 49 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Master needs neovim 0.12, and the newest published tag is built for 0.11
The note under Installation is the most useful paragraph in this README, and it is also the most awkward. It says the nvim-treesitter project was archived while the author refactored go.nvim onto its main branch, that the plugin no longer requires nvim-treesitter, and that master needs neovim 0.12. It adds that the behavior of neovim 0.11 is not guaranteed to remain correct, and that anyone on 0.11 should use the v0.11 release instead. The release list confirms the split: v0.11 is dated 2026-04-08 and described as a release for the treesitter master version and neovim 0.11, the one before it is v0.10.4 from 2025-04-24, and v0.10.0 from 2025-02-27. So the tags skip a year, and master has been moving since: the last push on the default branch is 2026-09-11, five months past the newest tag. Choosing master means living on unreleased plugin code against a Neovim version the README will not backport to.
The install section still requires nvim-treesitter, the project the note says is archived
Read the two blocks against each other. The Installation section says the dependency nvim-treesitter main branch, and optionally treesitter-objects, should be installed the first time you use the plugin, and then says to run TSInstall go to install the go parser if it is not there yet. TSInstall is an nvim-treesitter command, and the note immediately below says that project was archived and is no longer required. The lazy.nvim example resolves the contradiction by commenting the dependency out, with a note that it is optional for the master version. What is left is a plugin that ships its own syntax/, ftplugin/, ftdetect/ and queries/ directories, does its own treesitter highlight injection for SQL, JSON, go template and gohtmltmpl, and still tells newcomers to fetch a parser manager that no longer exists as a maintained dependency. The same paragraph closes by recommending sed, without saying what sed is for.
The lazy.nvim example stops inside the opts function and passes an undefined opts
The lazy.nvim block is worth reading as documentation rather than as something to paste. It opens a plugin spec, names guihua.lua and nvim-lspconfig as dependencies, and then defines opts as a function with no parameter. Inside that function it calls require("go").setup(opts), where opts is not anything the snippet has bound. The function then creates a GoFormat augroup and a BufWritePre autocmd for *.go that calls goimports, and returns a table whose only visible entries are two commented lines, lsp_keymaps = false and other options. The block ends there. So the one configuration example in the README does not show a complete option table, does not show the closing of the function, and references a variable the reader has to supply. The same goimports autocmd appears a second time further down as a lua <<EOF heredoc for a plain vimrc, with slightly different indentation and nothing new added.
Five commands route code through Copilot or OpenAI, and no backend is named per command
The AI section is the largest single group of commands after code generation, and it is the one with the least detail about where bytes go. GoAI is described as a natural-language command dispatcher that translates natural language into go.nvim commands via Copilot or OpenAI. GoCmtAI generates doc comments for the declaration at the cursor, GoDocAI finds symbols by a vague name and generates documentation from source, GoCodeReview reviews files, selections or diffs and pushes results into the quickfix list, and GoAIChat asks questions about Go code with automatic inclusion of function context and LSP references. Every one of those needs a key and a network round trip, and the README names no backend per command, no model names, and no way to turn the group off as a block. In a plugin otherwise built around asynchronous jobs and local tooling, that is the one area where the data path leaves the machine.
GOPATH/bin has to be on PATH, and the check is a single grep line
The one hard external requirement stated anywhere in this README is a shell variable. Because the plugin drives external command line tools, the Go bin directory has to already be on PATH, and the check offered is a grep against the current value.
echo $PATH | grep "$GOPATH/bin"If that prints nothing, the suggested fix is one line for the shell config file:
export PATH=$PATH:$GOPATH/binNote what this section does not do: it does not say which tools the plugin expects to find there, and the feature list names plenty of them. gotests generates table-driven tests with testify, mockgen backs GoMockGen, gomodifytags handles struct tags, gotestsum and ginkgo are offered as test runners alongside plain go test, gofumpt and goimports are the command line formatters, govulncheck does vulnerability scanning, and GoFix simply runs go fix. Setup is therefore require('go').setup() plus a PATH line, with the actual tool installation left to the reader.
The test target and the localtest targets load two different init files
The Makefile is small enough to read, and it says more about the project's testing habits than the README does. Dependencies go into a vendor start directory, PACKER_DIR points at ~/.local/share/nvim/site/pack/vendor/start, and localtestsetup creates that directory plus ~/tmp and clones plenary.nvim into it with --depth 1. Every test target then runs headless with --noplugin. The difference is which init file loads: test uses lua/tests/minimal.lua and runs PlenaryBustedDirectory over lua/tests/, while the localtest family uses lua/tests/init.lua instead. There are ten such targets, most of them pinned to a single spec file, including go_test_spec, go_ts_node_spec, go_tags_spec, go_module_spec, go_fixplurals_spec, go_fillstruct_spec and go_gopls_imports_spec, plus a failed directory for rerunning failures. The naming maps onto the feature list, which is a reasonable way to see which areas have coverage and which are covered by one file.
Four Lua lint configurations sit in the tree, and the lint target covers one directory
The top level listing carries more tool configuration than most plugins of this size. There is a .luacheckrc for luacheck, a selene.toml, a stylua.toml, and a .luarc.json for the Lua language server. The Makefile wires up only one of them: the lint target runs luacheck against lua/go, a single subdirectory, while lint for the other three tools is left to whatever the reader runs by hand. A committed .luacheckcache is also in the listing, which is a generated artifact rather than configuration. Formatting itself is handled two ways inside the plugin, through gopls as a language server or through gofumpt and goimports on the command line, and golangci-lint v2 is available as diagnostics or as an asynchronous background check. So there are four static analysis setups, two formatting paths, and one Makefile target that touches one of them.
The README is a command index of close to thirty anchors into doc/usage.md
The repository has no homepage, and its one line description is a greeting rather than a summary, so the README is the only front door. Its structure is a feature catalogue: every bullet under Code Generation, AI-Powered, Documentation and Module commands ends in a link to a section anchor in doc/usage.md, and there are close to thirty of those anchors between them. Quick links at the bottom point at Code Format, Build & Test, Debug, AI Code Review and AI Chat in the same file, and advanced setup lives in doc/advanced-setup.md. The consequence is that the README tells you a command exists and what it is for, and then stops. Per-project configuration is the one place it names concrete files, .gonvim/init.lua or a VSCode launch.json, and .gonvim is in the listing. Everything else, including what the dozens of options in the truncated setup table actually do, has to be read in the docs directory.
Editorial conclusion
go.nvim earns its place for people who already live in Neovim and want gopls navigation, AST driven generation and Dlv in one keymap set, but read three things before installing. Pin your decision to a version pair, master for neovim 0.12 or the v0.11 tag for 0.11, because the project itself declines to guarantee 0.11 on master. Expect to reconcile the installation text with the note below it, since one asks for a parser plugin the other says is archived. And decide what you are willing to send to an external AI service, since five of the commands route code through Copilot or OpenAI. None of this makes the plugin unusable; it makes the README a document to check rather than follow top to bottom.
Frequently asked questions
Does go.nvim still need nvim-treesitter after that project was archived?
The note says the plugin no longer requires nvim-treesitter and that the 13K star project was archived while the code moved to its main branch. The Installation section above it still says to install the nvim-treesitter main branch on first use and to run TSInstall go for the parser.
Which Neovim version does the go.nvim master branch support?
Master requires neovim 0.12, and the note explicitly declines to guarantee that neovim 0.11 behavior stays correct. For 0.11 the note points to the go.nvim v0.11 release, published 2026-04-08.
How is go.nvim installed with lazy.nvim in the README example?
The spec names ray-x/go.nvim with ray-x/guihua.lua and neovim/nvim-lspconfig as dependencies and calls require("go").setup(opts) from inside an opts function. The block ends before the option table is finished, so the full set of options is not shown there.
What does go.nvim need on the PATH?
The Go bin directory has to be on PATH. The README checks it with echo $PATH | grep "$GOPATH/bin" and adds export PATH=$PATH:$GOPATH/bin to the shell config file when the check prints nothing.
Which AI backends do the go.nvim AI commands use?
GoAI translates natural language into go.nvim commands through Copilot or OpenAI. GoCmtAI, GoDocAI, GoCodeReview and GoAIChat cover comments, documentation, code review and chat, and no backend is named for any individual command.
How does go.nvim run its own test suite?
The Makefile runs Neovim headless with --noplugin and PlenaryBustedDirectory, using lua/tests/minimal.lua for the test target and lua/tests/init.lua for the localtest targets. It clones plenary.nvim into ~/.local/share/nvim/site/pack/vendor/start, and lint runs luacheck on lua/go.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/ray-x-go-nvim)Star history chart for your README
[](https://hysenlabs.com/projects/ray-x-go-nvim)Was this useful?