feat(struct_tags): set default tag (#87)
* feat(struct_tags): add config option for default tag * docs: docgen * fix(struct_tags): as it turns out it didnt work as i supposed to before, but now it does
This commit is contained in:
parent
c2f64db4a8
commit
57b5dbf62e
3 changed files with 19 additions and 13 deletions
|
|
@ -55,6 +55,10 @@ You can look at default options |gopher.nvim-config-defaults|
|
|||
---@type number
|
||||
log_level = vim.log.levels.INFO,
|
||||
|
||||
-- timeout for running commands
|
||||
---@type number
|
||||
timeout = 2000,
|
||||
|
||||
-- user specified paths to binaries
|
||||
---@class gopher.ConfigCommand
|
||||
commands = {
|
||||
|
|
@ -80,6 +84,9 @@ You can look at default options |gopher.nvim-config-defaults|
|
|||
gotag = {
|
||||
---@type gopher.ConfigGoTagTransform
|
||||
transform = "snakecase",
|
||||
|
||||
-- default tags to add to struct fields
|
||||
default_tag = "json",
|
||||
},
|
||||
}
|
||||
<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue