aboutsummaryrefslogtreecommitdiff
path: root/nvim/custom/configs/conform.lua
blob: 5edc9bf14e1e589a271d0c4275a6436c98071700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require("conform").setup({
    formatters_by_ft = {
      lua = { "stylua" },
      python = { "isort", "black" },
      javascript = { { "prettierd", "prettier" } },
      typescript = { { "prettierd", "prettier" } },
      javascriptreact = { { "prettierd", "prettier" } },
      html = { "prettierd", "prettier" },
      css = { "prettierd", "prettier" },
    },
    format_on_save = {
        -- These options will be passed to conform.format()
        timeout_ms = 500,
        lsp_fallback = true,
      },
  })