Enhance your golang experience
Find a file
Smirnov Olexander 40fe09ed63 refactor: gomod
2022-06-03 13:42:58 +03:00
lua/gopher refactor: gomod 2022-06-03 13:42:58 +03:00
plugin feat: add vim commands for lua api 2022-06-03 13:32:00 +03:00
spec add makefile 2022-05-31 00:23:53 +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 add thanks section to readme 2022-06-03 13:34:59 +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 = {
        "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:
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

Thanks: