update readme
This commit is contained in:
parent
7587555fa9
commit
e4323581be
1 changed files with 10 additions and 6 deletions
16
README.md
16
README.md
|
|
@ -11,9 +11,9 @@ Pre-dependency: [go](https://github.com/golang/go) (tested on 1.17 and 1.18)
|
||||||
```lua
|
```lua
|
||||||
use {
|
use {
|
||||||
"olexsmir/gopher.nvim",
|
"olexsmir/gopher.nvim",
|
||||||
requires = {
|
requires = { -- dependencies
|
||||||
"nvim-lua/plenary.nvim", -- dependencie
|
"nvim-lua/plenary.nvim",
|
||||||
"nvim-treesitter/nvim-treesitter", -- dependencie
|
"nvim-treesitter/nvim-treesitter",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
@ -23,12 +23,15 @@ Also, run `TSInstall go` if install the `go` parser if not installed yet.
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
1. Install requires go tools:
|
1. Install requires go tools:
|
||||||
|
This will install next tools:
|
||||||
|
|
||||||
|
- [gomodifytags](https://github.com/fatih/gomodifytags)
|
||||||
|
|
||||||
```viml
|
```viml
|
||||||
:GoInstallDeps
|
:GoInstallDeps
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Modify struct tags:
|
2. Modify struct tags:
|
||||||
By default be added/removed `json` tag, if not set.
|
By default be added/removed `json` tag, if not set.
|
||||||
|
|
||||||
```viml
|
```viml
|
||||||
|
|
@ -36,14 +39,15 @@ By default be added/removed `json` tag, if not set.
|
||||||
:GoTagRm yaml " For remove yaml tag
|
:GoTagRm yaml " For remove yaml tag
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Run `go mod` command
|
3. Run `go mod` command
|
||||||
|
|
||||||
```viml
|
```viml
|
||||||
:GoMod tidy " Runs `go mod tidy`
|
:GoMod tidy " Runs `go mod tidy`
|
||||||
:GoMod init asdf " Runs `go mod init asdf`
|
:GoMod init asdf " Runs `go mod init asdf`
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Run `go get` command
|
4. Run `go get` command
|
||||||
|
|
||||||
Link can has a `http` or `https` prefix.
|
Link can has a `http` or `https` prefix.
|
||||||
|
|
||||||
You can provide more that one package url.
|
You can provide more that one package url.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue