radian-software / apheleia

🌷 Run code formatter on buffer contents without moving point, using RCS patches and dynamic programming.
MIT License
558 stars 75 forks source link

Take `tab-width` into account in `shfmt` #179

Closed abougouffa closed 1 year ago

abougouffa commented 1 year ago

The indentation size of 4 was hard-coded in the formatter parameters. This PR fixes this by using the tab-width value.

raxod502 commented 1 year ago

This seems reasonable, however I think the test framework needs some updates to handle using this buffer-local variable in a reasonable way.

mohkale commented 1 year ago

167 should address this in a more accurate way. I think this can be closed.

raxod502 commented 1 year ago

Yep, looks to be.