[mirror] Make your go dev experience better github.com/olexsmir/gopher.nvim
neovim golang
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Lua 90.4%
Go 5.1%
Vim Script 3.2%
Makefile 1.3%
15 1 17

Clone this repository

https://tangled.org/olexsmir.xyz/gopher.nvim https://tangled.org/did:plc:slhnamqkslwa5e5e5hrznbxr/gopher.nvim
git@tangled.org:olexsmir.xyz/gopher.nvim git@tangled.org:did:plc:slhnamqkslwa5e5e5hrznbxr/gopher.nvim

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

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#

  1. Install requires go tools:
:GoInstallDeps
  1. Modify struct tags: By default be added/removed json tag, if not set.
:GoTagAdd json " For add json tag
:GoTagRm yaml " For remove yaml tag
  1. Run go mod command
:GoMod tidy " Runs `go mod tidy`
:GoMod init asdf " Runs `go mod init asdf`
  1. Run go get command Link can has a http or https prefix.

You can provide more that one package url.

:GoGet github.com/gorilla/mux

Thanks#