windwp / nvim-ts-autotag

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

fix: disabling of auto rename/close via setup() #83

Closed sifu closed 1 year ago

sifu commented 1 year ago

At the moment it is not possible to disable auto closing / auto renaming via setup(), since if opts.enable_close = false the expression M.enable_close = opts.enable_close or M.enable_close will always return the M.enable_close default value.

This PR would fix that.

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.