test(struct_tags): add support for multiple structs

This commit is contained in:
Oleksandr Smirnov 2025-03-18 21:21:14 +02:00
parent 59169df030
commit 59a0e961c4
No known key found for this signature in database
4 changed files with 49 additions and 1 deletions

View file

@ -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