Open nguyenvukhang opened 1 year ago
Here's a minimal example:
// main.swift class A { let v: Int init() { self.v = 0 } }
// .swiftformat --self init-only
With these two files in the same folder and with swiftformat installed,
swiftformat
:Neoformat
// main.swift class A { let v: Int init() { v = 0 } }
:!swiftformat %:p
I tried poking around in formatters/swift.vim and a bit in neoformat.vim but I can't quite isolate the issue.
formatters/swift.vim
neoformat.vim
Here's a minimal example:
With these two files in the same folder and with
swiftformat
installed,:Neoformat
yields:!swiftformat %:p
yields the expected outcome:I tried poking around in
formatters/swift.vim
and a bit inneoformat.vim
but I can't quite isolate the issue.