aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/lua/configs/conform.lua
blob: b6fa6bb6b4a66425b37f60d071310e39ec1eb5cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local options = {
  formatters_by_ft = {
    lua = { "stylua" },
    sh = {"shfmt"},
    bash = {"shfmt"},
    zsh = {"shfmt"},
    markdown = { "prettier" },
    css = { "prettier" },
    html = { "prettier" },
  },

  -- format_on_save = {
  --   -- These options will be passed to conform.format()
  --   timeout_ms = 500,
  --   lsp_fallback = true,
  -- },
}

require("conform").setup(options)