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:
Smirnov Oleksandr 2025-03-02 17:19:00 +02:00 committed by GitHub
parent c2f64db4a8
commit 57b5dbf62e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 13 deletions

View file

@ -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",
},
}
<