test(struct_tags): add support for multiple structs
This commit is contained in:
parent
59169df030
commit
59a0e961c4
4 changed files with 49 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ function ts.get_struct_node_at_pos(bufnr)
|
|||
end
|
||||
|
||||
local res = {}
|
||||
local r = get_parrent_node("type_declaration", node)
|
||||
local r = get_parrent_node("type_spec", node)
|
||||
if not r then
|
||||
error "No struct found under cursor"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue