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
|
|
@ -46,4 +46,14 @@ utils["should add .indent() 2 tabs"] = function()
|
|||
t.eq("\t\t", u.indent(line, indent))
|
||||
end
|
||||
|
||||
utils["should .list_unique on list with duplicates"] = function()
|
||||
local u = require "gopher._utils"
|
||||
t.eq({ "json", "xml" }, u.list_unique { "json", "xml", "json" })
|
||||
end
|
||||
|
||||
utils["should .list_unique on list with no duplicates"] = function()
|
||||
local u = require "gopher._utils"
|
||||
t.eq({ "json", "xml" }, u.list_unique { "json", "xml" })
|
||||
end
|
||||
|
||||
return T
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue