rodjek / vim-puppet

Puppet niceties for your Vim setup
Apache License 2.0
500 stars 137 forks source link

Hash Rocket aligning happens in comments #143

Open russellshackleford opened 1 year ago

russellshackleford commented 1 year ago

Vim version

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Aug 2 2022 12:56:59) Included patches: 1-1763 Modified by bugzilla@redhat.com Compiled by bugzilla@redhat.com

OS:

AlmaLinux release 8.7 (Stone Smilodon)

Problem: AlignHashRockets doesn't understand comments

Presumably it doesn't catch the end } of whatever resource it is aligning and therefore aligns ALL hash rockets in the entirety of my puppet-strings comments anytime the function is called. I can introduce a delay between typing the = and the > to workaround this.

Attached is a short gif showing the problem align-hash-rockets