summaryrefslogtreecommitdiff
path: root/lua/plugins/conform.lua
blob: a7db2fb8a166bc0add7fd314c02cf516632a0a30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
return {
  "stevearc/conform.nvim",
  keys = {
    {
      "<leader>cf",
      function()
        require("conform").format({ async = true })
      end,
      mode = "",
      desc = "Format buffer",
    },
  },
  opts = {
    formatters_by_ft = {
      cpp = { "clang-format" },
      ocaml = { "ocamlformat" },
      python = { "black" }
    },
  }
}