stevearc / conform.nvim

Lightweight yet powerful formatter plugin for Neovim
MIT License
2.92k stars 153 forks source link

fix: `swift_format` doesn't respect `.swift-format` file #283

Closed NSHaoSong closed 7 months ago

NSHaoSong commented 7 months ago

swift-format won't pick up .swift-format config file in stdin mode. We need to set stdin = false and --in-place to make it work with conform.nvim.

apple/swift-format/README.md

  • -i/--in-place: Overwrites the input files when formatting instead of printing the results to standard output. No backup of the original file is made before it is overwritten.

Fix https://github.com/stevearc/conform.nvim/issues/211

stevearc commented 7 months ago

LGTM