windwp / nvim-ts-autotag

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

Remap input from ESC to Control + c to rename tags #117

Closed rafa-thayto closed 1 year ago

rafa-thayto commented 1 year ago

How can I auto-rename tags with Control + c instead of ESC?

I've not found any related issues. Anyone can help me?

molvrr commented 1 year ago

Hey @rafa-thayto, I think this is related to how CTRL-C works in Neovim. CTRL-C doesn't trigger InsertLeave events (which is the event nvim-ts-autotag uses for renaming tags). Remapping CTRL-C to ESC in Insert Mode might be what you're looking for.

rafa-thayto commented 1 year ago

Hey @rafa-thayto, I think this is related to how CTRL-C works in Neovim. CTRL-C doesn't trigger InsertLeave events (which is the event nvim-ts-autotag uses for renaming tags). Remapping CTRL-C to ESC in Insert Mode might be what you're looking for.

Sad... but thank you for the answer!

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.