gopher.nvim#
Minimalistic plugin for Go development in Neovim written in Lua.
It's not an LSP tool, the main goal of this plugin add go tooling support in neovim.
Install#
Pre-dependency: go (tested on 1.17 and 1.18)
use {
"olexsmir/gopher.nvim",
requires = {
"nvim-lua/plenary.nvim", -- dependencie
"nvim-treesitter/nvim-treesitter", -- dependencie
},
}
Also, run TSInstall go if install the go parser if not installed yet.
Features#
- Install requires go tools:
:GoInstallDeps
- Modify struct tags:
By default be added/removed
jsontag, if not set.
:GoTagAdd json " For add json tag
:GoTagRm yaml " For remove yaml tag
- Run
go modcommand
:GoMod tidy " Runs `go mod tidy`
:GoMod init asdf " Runs `go mod init asdf`