{
  "config": {
    "auto_format_on_save": false
  },
  "keybindings": {
    "format-doc": "alt+f"
  },
  "formatters": [
    {
      "language": ["javascript", "typescript", "JSX"],
      "file_patterns": ["%.js$", "%.ts$", "%.jsx$", "%.tsx$"],
      "command": "prettier $FILENAME",
      "url": "https://prettier.io"
    },
    {
      "language": ["c", "cpp", "objective-c"],
      "file_patterns": ["%.inl$", "%.cpp$", "%.hpp$", "%.cc$", "%.cxx$", "%.c++$", "%.hh$", "%.hxx$", "%.h++$", "%.objcpp$", "%.m$"],
      "command": "clang-format --style=file $FILENAME",
      "url": "https://clang.llvm.org/docs/ClangFormat.html"
    },
    {
      "language": "python",
      "file_patterns": ["%.py$", "%.pyw$"],
      "command": "black $FILENAME",
      "type": "inplace",
      "url": "https://black.readthedocs.io/en/stable/"
    },
    {
      "language": "kotlin",
      "file_patterns": ["%.kt$"],
      "command": "ktlint -F $FILENAME",
      "type": "inplace",
      "url": "https://pinterest.github.io/ktlint/"
    },
    {
      "language": "rust",
      "file_patterns": ["%.rs"],
      "command": "rustfmt --emit stdout --color never $FILENAME",
      "url": "https://rust-lang.github.io/rustfmt/"
    },
    {
      "language": "go",
      "file_patterns": ["%.go"],
      "command": "gopls format $FILENAME",
      "url": "https://pkg.go.dev/golang.org/x/tools/gopls"
    },
    {
      "language": "json",
      "file_patterns": ["%.json$", "%.cson$"],
      "command": "json",
      "type": "native",
      "url": "#native"
    },
    {
      "language": [ "xml", "html" ],
      "file_patterns": ["%.xml", "%.html?$"],
      "command": "xml",
      "type": "native",
      "url": "#native"
    },
    {
      "language": "css",
      "file_patterns": ["%.css"],
      "command": "css",
      "type": "native",
      "url": "#native"
    },
    {
      "language": "zig",
      "file_patterns": ["%.zig"],
      "command": "zig fmt $FILENAME",
      "type": "inplace",
      "url": "https://ziglang.org"
    },
    {
      "language": "haskell",
      "file_patterns": ["%.hs$"],
      "command": "ormolu $FILENAME",
      "url": "https://github.com/tweag/ormolu"
    },
    {
      "language": "v",
      "file_patterns": ["%.v$"],
      "command": "v fmt $FILENAME",
      "url": "https://vlang.io"
    }
  ]
}
