feat(strct-tags): add support for tag options (#126)

* feat(struct_tags): add options support

* refactor(struct-tags): give input field better name

* feat(struct-tag): add default option

* refactor: make it work on neovim version below 0.12

* chore(struct-tags): update the demo

* refactor: unite struct_tags util with main logic
This commit is contained in:
Oleksandr Smirnov 2025-10-30 12:25:42 +02:00
parent 0de1892ca9
commit 7a18d9f7bd
No known key found for this signature in database
19 changed files with 301 additions and 15 deletions

View file

@ -48,7 +48,7 @@ end)
-- :GoTag
cmd("GoTagAdd", function(opts)
require("gopher").tags.add {
tags = opts.fargs,
input = opts.fargs,
range = (opts.count ~= -1) and {
start = opts.line1,
end_ = opts.line2,
@ -58,7 +58,7 @@ end, "*", true)
cmd("GoTagRm", function(opts)
require("gopher").tags.rm {
tags = opts.fargs,
input = opts.fargs,
range = (opts.count ~= -1) and {
start = opts.line1,
end_ = opts.line2,