This breaks dot repeat
Hello!
I like this plugin, but this breaks dot repeating inserts with > in it.
For example:
- enter insert mode
- type
$this-> - exit insert mode
- press
.to dot repeat $this-appears
Thanks!
Not a solution, but since I don't need autotag for PHP files, I enabled it only for certain file types:
autotag = {
enable = true,
filetypes = { 'html', 'javascript', 'typescript', 'javascriptreact', 'typescriptreact', 'svelte', 'vue', 'xml', 'markdown' },
}
After some investigation of this previously, this is a non-trivial addition to nvim-ts-autotag to my knowledge.
I'll pin this so it doesn't get auto-closed as this is very much an issue I hope to resolve. If someone wants to beat me to the punch, PRs are welcome 😃.
Pinned label that is 😅
@calebdw @nicoqh If you still use this plugin, and care about this issue.
There's another plugin with the same default features which doesn't have this issue: https://github.com/tronikelis/ts-autotag.nvim
I'm not sure the exact cause, but I believe the reason this breaks dot repeat is because it sets an insert mode keymap for > to autoclose the tag.
This was one of the reasons why @tronikelis created the alternative plugin.