10 files changed,
176 insertions(+),
69 deletions(-)
Author:
Smirnov Oleksandr
ss2316544@gmail.com
Committed by:
GitHub
noreply@github.com
Committed at:
2025-03-19 18:06:33 +0200
Parent:
e9f2eef
jump to
M
doc/gopher.nvim.txt
@@ -129,6 +129,25 @@ ID int `yaml:id`
Name string `yaml:name` } < +------------------------------------------------------------------------------ + *struct_tags.add()* + `struct_tags.add`({...}) +tags to a struct under the cursor +Parameters ~ +{...} `(string)` Tags to add to the struct fields. If not provided, it will use [config.gotag.default_tag] + +------------------------------------------------------------------------------ + *struct_tags.remove()* + `struct_tags.remove`({...}) +tags from a struct under the cursor +Parameters ~ +{...} `(string)` Tags to add to the struct fields. If not provided, it will use [config.gotag.default_tag] + +------------------------------------------------------------------------------ + *struct_tags.clear()* + `struct_tags.clear`() +all tags from a struct under the cursor + ============================================================================== ------------------------------------------------------------------------------
M
lua/gopher/init.lua
@@ -43,6 +43,7 @@
gopher.tags = { add = tags.add, rm = tags.remove, + clear = tags.clear, } gopher.test = {
M
plugin/gopher.vim
@@ -1,5 +1,6 @@
command! -nargs=* GoTagAdd :lua require"gopher".tags.add(<f-args>) command! -nargs=* GoTagRm :lua require"gopher".tags.rm(<f-args>) +command! GoTagClear :lua require"gopher".tags.clear() command! GoTestAdd :lua require"gopher".test.add() command! GoTestsAll :lua require"gopher".test.all() command! GoTestsExp :lua require"gopher".test.exported()