[mirror] Make your go dev experience better github.com/olexsmir/gopher.nvim
neovim golang
Lua 100.0%
5 1 14

Clone this repository

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

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

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-treesitter/nvim-treesitter", -- dependencie
    },
}

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

Features#

  1. Install requires go tools:
require"gopher".install_deps()
  1. Modify struct tags by: json default tag for add & remove
require"gopher".tags_add("json") -- add json tag
require"gopher".tags_rm("json")  -- remove json tag