Fix tags when using `tag_transform` (#121)

Also clarify `tag_transform` documentation in README for more clarity
pull/123/head
Mochammad Hanif R 2 years ago committed by GitHub
parent c89418aa4b
commit 5c4fcc49ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -465,7 +465,7 @@ require('go').setup({
fillstruct = 'gopls', -- can be nil (use fillstruct, slower) and gopls
gofmt = 'gofumpt', --gofmt cmd,
max_line_len = 120, -- max line length in goline format
tag_transform = false, -- tag_transfer check gomodifytags for details
tag_transform = false, -- can be transform option("snakecase", "camelcase", etc) check gomodifytags for details and more options
test_template = '', -- g:go_nvim_tests_template check gotests for details
test_template_dir = '', -- default to nil if not set; g:go_nvim_tests_template_dir check gotests for details
comment_placeholder = '' , -- comment_placeholder your cool placeholder e.g. ﳑ    

@ -43,8 +43,8 @@ tags.modify = function(...)
table.insert(setup, struct_name)
end
if transform then
table.insert(setup.args, "-transform")
table.insert(setup.args, transform)
table.insert(setup, "-transform")
table.insert(setup, transform)
end
local arg = { ... }
for i, v in ipairs(arg) do

Loading…
Cancel
Save