summaryrefslogtreecommitdiff
path: root/plugin/plugins/conform.lua
blob: 7dfcbb7ae28e2fefacdf3917023980f80c280e16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---@diagnostic disable: param-type-mismatch

require("conform").setup({
    formatters_by_ft = {
        lua = { "stylua" },
        python = { "ruff_format" },
        rust = { "rustfmt", lsp_format = "fallback" },
        bash = { "shfmt" },
        sh = { "shfmt" },
        tex = { "latexindent" },
    },
    formatters = {
        shfmt = {
            append_args = { "-i", "4", "-fn" },
        },
        latexindent = {
            append_args = { "-m", "-l" },
        },
    },
})