alvan/vim-closetag

vim-closetag broken in html like files with extensions other than .html

joerideg opened this issue · 3 comments

Hi!

First of all thanks for the great work.

At this point when I update closetag to the latest version it doesnt work even if its the only plugin loaded. When I go back to commit 00e1155 it does work. So it seems that when you removed 'unnecessary code' you removed a bit too much :)

It seems to be working fine for me. What's wrong with it?

After your comment I tried stuff out a bit more detailed.
So the problem doesnt seem to occur in files with extension .html with any filetype (be it html or html.handlebars or html.ejs) but it will occur in files with extenions like .hbs or .ejs even when their filetype is set to html.

I guess the solution would be to make this plugin effective based on filetype and not extension?

I thought commit 00e1155 was the difference, but I guess I was testing out html files and ejs/hbs files and drew the wrong conclusion.

Ah and now I see that there is a specific option for it in the readme. My bad! Closing the issue