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:
parent
0de1892ca9
commit
7a18d9f7bd
19 changed files with 301 additions and 15 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue