+12
-3
README.md
+12
-3
README.md
···
39
39
>
40
40
> If you need more info look `:h gopher.nvim`
41
41
42
-
**Take a look at default options**
42
+
**Take a look at default options (might be a bit outdated, look `:h gopher.nvim-config-defaults`)**
43
43
44
44
```lua
45
45
require("gopher").setup {
46
+
log_level = vim.log.levels.INFO,
47
+
48
+
-- timeout for running internal commands
49
+
timeout = 2000,
50
+
46
51
commands = {
47
52
go = "go",
48
53
gomodifytags = "gomodifytags",
49
54
gotests = "gotests",
50
55
impl = "impl",
51
56
iferr = "iferr",
52
-
dlv = "dlv",
53
57
},
54
58
gotests = {
55
59
-- gotests doesn't have template named "default" so this plugin uses "default" to set the default template
···
61
65
},
62
66
gotag = {
63
67
transform = "snakecase",
68
+
-- default tags to add to struct fields
69
+
default_tag = "json",
70
+
},
71
+
iferr = {
72
+
-- choose a custom error message
73
+
message = nil,
64
74
},
65
75
}
66
76
```
···
84
94
- [impl](https://github.com/josharian/impl)
85
95
- [gotests](https://github.com/cweill/gotests)
86
96
- [iferr](https://github.com/koron/iferr)
87
-
- [dlv](github.com/go-delve/delve/cmd/dlv)
88
97
</details>
89
98
90
99
<details>
+1
-2
doc/gopher.nvim.txt
+1
-2
doc/gopher.nvim.txt
···
57
57
---@type number
58
58
log_level = vim.log.levels.INFO,
59
59
60
-
-- timeout for running commands
60
+
-- timeout for running internal commands
61
61
---@type number
62
62
timeout = 2000,
63
63
···
73
73
gotests = "gotests",
74
74
impl = "impl",
75
75
iferr = "iferr",
76
-
dlv = "dlv",
77
76
},
78
77
---@class gopher.ConfigGotests
79
78
gotests = {
+1
-2
lua/gopher/config.lua
+1
-2
lua/gopher/config.lua
···
33
33
---@type number
34
34
log_level = vim.log.levels.INFO,
35
35
36
-
-- timeout for running commands
36
+
-- timeout for running internal commands
37
37
---@type number
38
38
timeout = 2000,
39
39
···
49
49
gotests = "gotests",
50
50
impl = "impl",
51
51
iferr = "iferr",
52
-
dlv = "dlv",
53
52
},
54
53
---@class gopher.ConfigGotests
55
54
gotests = {