sbdchd / neoformat

:sparkles: A (Neo)vim plugin for formatting code.
BSD 2-Clause "Simplified" License
1.97k stars 188 forks source link

Give cabal-fmt access to the filename #499

Open lrworth opened 1 month ago

lrworth commented 1 month ago

cabal-fmt supports pragmas, all of which are currently undocumented, some of which (e.g. expand) only work when given the original file path.

This PR makes cabal-fmt run on the original file instead of a temporary one.

lrworth commented 1 month ago

https://github.com/sbdchd/neoformat/pull/424 attempts to do the same thing but with a lot of concerning comments. @namedots does the change in this PR work for you?