+7
README.md
+7
README.md
···
3
3
Minimalistic plugin for Go development in Neovim written in Lua.
4
4
5
5
It's not an LSP tool, the main goal of this plugin add go tooling support in neovim.
6
+
6
7
## Install
7
8
8
9
Pre-dependency: [go](https://github.com/golang/go) (tested on 1.17 and 1.18)
···
84
85
85
86
```vim
86
87
:GoTestAdd
88
+
```
89
+
90
+
Generate all tests for all functions/methods in current file
91
+
92
+
```vim
93
+
:GoTestsAll
87
94
```
88
95
89
96
7. Run `go generate` command
+9
lua/gopher/gotests.lua
+9
lua/gopher/gotests.lua
+1
lua/gopher/init.lua
+1
lua/gopher/init.lua
+1
plugin/gopher.vim
+1
plugin/gopher.vim
···
1
1
command! -nargs=* GoTagAdd :lua require"gopher".tags_add(<f-args>)
2
2
command! -nargs=* GoTagRm :lua require"gopher".tags_rm(<f-args>)
3
3
command! -nargs=* GoTestAdd :lua require"gopher".test_add(<f-args>)
4
+
command! -nargs=* GoTestsAll :lua require"gopher".tests_all(<f-args>)
4
5
command! -nargs=* GoMod :lua require"gopher".mod(<f-args>)
5
6
command! -nargs=* GoGet :lua require"gopher".get(<f-args>)
6
7
command! -nargs=* GoImpl :lua require"gopher".impl(<f-args>)