windwp / nvim-ts-autotag

Use treesitter to auto close and auto rename html tag
MIT License
1.63k stars 87 forks source link

get_node_at_cursor nil value error #87

Closed kuwakuwi1 closed 1 year ago

kuwakuwi1 commented 1 year ago

Hi, When I tried to close tag, this error happened:

Error executing lua (...)/nvim-lua-ts-autotag/internal.lua:172 attempt to call field 'get_node_at_cursor' (a nil value)
stack traceback:
   (...)/nvim-lua-ts-autotag/internal.lua:172: in function 'tag_node'
   (...)/nvim-lua-ts-autotag/internal.lua:229: in function 'check_close_tag'
   (...)/nvim-lua-ts-autotag/internal.lua:268: in function 'close_tag'

I use: NVIM v0.8.0-1210-gd367ed9b2 AstroNvim

How do I solve this?

Thanks in advance

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.