fixup! fix(struct_tags): edge case with structs declared as var

This commit is contained in:
Oleksandr Smirnov 2025-03-22 13:10:28 +02:00
parent 6dce63b3b1
commit 978e113cd8
No known key found for this signature in database

View file

@ -106,7 +106,7 @@ function ts.get_struct_under_cursor(bufnr)
--- because in cases like `type ( T struct{}, U strict{} )`
--- i will be choosing always last struct in the list
---
--- var_spec is for cases like `var x struct{}`
--- var_declaration is for cases like `var x struct{}`
--- short_var_declaration is for cases like `x := struct{}{}`
return do_stuff(bufnr, {
"type_spec",