sbdchd / neoformat

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

`.swiftformat` config not detected #450

Open nguyenvukhang opened 1 year ago

nguyenvukhang commented 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,

I tried poking around in formatters/swift.vim and a bit in neoformat.vim but I can't quite isolate the issue.