Jorenar / miniSnip

Lightweight snippet plugin for Vim
MIT License
53 stars 8 forks source link

Unexpected indent on last line of snippet #31

Closed jmcantrell closed 1 year ago

jmcantrell commented 1 year ago

The following snippet:

? tag
$ `{{` `}}`
<{{name}}{{}}>
    {{+}}
</{{~1}}>

Leaves the last line indented:

<foo disabled>
  text
  </foo>

I thought it might be autoindent, but turning that off didn't seem to affect it, and nothing seemed relevant in the formatoptions. Any ideas?

Jorenar commented 1 year ago

This is snippet for HTML, right? The default indentexpr for this filetype doesn't handle unknown/custom tag names very well

jmcantrell commented 1 year ago

Ah, that makes sense