aboutsummaryrefslogtreecommitdiff
path: root/store/config/nvim/lua/setup/plugins/conform.lua
blob: e14c3f9022a2a7010eca6f21289561076bc5b47c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local function setup()
    require("conform").setup({
        formatters_by_ft = {
            javascript = { "prettierd", "prettier", stop_after_first = true },
            typescript = { "prettierd", "prettier", stop_after_first = true },
            javascriptreact = { "prettierd", "prettier", stop_after_first = true },
            typescriptreact = { "prettierd", "prettier", stop_after_first = true },
            markdown = { "prettierd", "prettier", stop_after_first = true },
        },
        default_format_opts = {
            lsp_format = "fallback",
        },
    })
end

return {
    setup = setup
}