docs: update readme
This commit is contained in:
parent
7af08c9780
commit
4a56f4666d
3 changed files with 8 additions and 5 deletions
11
README.md
11
README.md
|
|
@ -39,17 +39,19 @@ Requirements:
|
||||||
>
|
>
|
||||||
> If you need more info look `:h gopher.nvim`
|
> If you need more info look `:h gopher.nvim`
|
||||||
|
|
||||||
**Take a look at default options**
|
**Take a look at default options (might be a bit outdated, look `:h gopher.nvim-config-defaults`)**
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
require("gopher").setup {
|
require("gopher").setup {
|
||||||
|
log_level = vim.log.levels.INFO,
|
||||||
|
timeout = 2000,
|
||||||
|
setup_commands = true,
|
||||||
commands = {
|
commands = {
|
||||||
go = "go",
|
go = "go",
|
||||||
gomodifytags = "gomodifytags",
|
gomodifytags = "gomodifytags",
|
||||||
gotests = "gotests",
|
gotests = "gotests",
|
||||||
impl = "impl",
|
impl = "impl",
|
||||||
iferr = "iferr",
|
iferr = "iferr",
|
||||||
dlv = "dlv",
|
|
||||||
},
|
},
|
||||||
gotests = {
|
gotests = {
|
||||||
-- gotests doesn't have template named "default" so this plugin uses "default" to set the default template
|
-- gotests doesn't have template named "default" so this plugin uses "default" to set the default template
|
||||||
|
|
@ -61,6 +63,10 @@ require("gopher").setup {
|
||||||
},
|
},
|
||||||
gotag = {
|
gotag = {
|
||||||
transform = "snakecase",
|
transform = "snakecase",
|
||||||
|
default_tag = "json",
|
||||||
|
},
|
||||||
|
iferr = {
|
||||||
|
message = nil,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
@ -84,7 +90,6 @@ require("gopher").setup {
|
||||||
- [impl](https://github.com/josharian/impl)
|
- [impl](https://github.com/josharian/impl)
|
||||||
- [gotests](https://github.com/cweill/gotests)
|
- [gotests](https://github.com/cweill/gotests)
|
||||||
- [iferr](https://github.com/koron/iferr)
|
- [iferr](https://github.com/koron/iferr)
|
||||||
- [dlv](github.com/go-delve/delve/cmd/dlv)
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,6 @@ You can look at default options |gopher.nvim-config-defaults|
|
||||||
gotests = "gotests",
|
gotests = "gotests",
|
||||||
impl = "impl",
|
impl = "impl",
|
||||||
iferr = "iferr",
|
iferr = "iferr",
|
||||||
dlv = "dlv",
|
|
||||||
},
|
},
|
||||||
---@class gopher.ConfigGotests
|
---@class gopher.ConfigGotests
|
||||||
gotests = {
|
gotests = {
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,6 @@ local default_config = {
|
||||||
gotests = "gotests",
|
gotests = "gotests",
|
||||||
impl = "impl",
|
impl = "impl",
|
||||||
iferr = "iferr",
|
iferr = "iferr",
|
||||||
dlv = "dlv",
|
|
||||||
},
|
},
|
||||||
---@class gopher.ConfigGotests
|
---@class gopher.ConfigGotests
|
||||||
gotests = {
|
gotests = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue