Enhance your golang experience
Find a file
Smirnov Olexander e4323581be update readme
2022-06-11 23:51:27 +03:00
autoload/health feat: add health checker 2022-06-07 01:08:33 +03:00
lua/gopher feat: add goget support 2022-06-07 01:35:34 +03:00
plugin feat: add goget support 2022-06-07 01:35:34 +03:00
spec test: add for utils 2022-06-11 17:16:41 +03:00
.gitignore Initial commit 2022-05-30 15:44:12 +03:00
Makefile add makefile 2022-05-31 00:23:53 +03:00
nvim.toml Initial commit 2022-05-30 15:44:12 +03:00
README.md update readme 2022-06-11 23:51:27 +03:00
selene.toml Initial commit 2022-05-30 15:44:12 +03:00
stylua.toml Initial commit 2022-05-30 15:44:12 +03:00

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 = { -- dependencies
    "nvim-lua/plenary.nvim",
    "nvim-treesitter/nvim-treesitter",
  },
}

Also, run TSInstall go if install the go parser if not installed yet.

Features

  1. Install requires go tools: This will install next 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