24 lines
713 B
Lua
24 lines
713 B
Lua
-- Conform setup for Prettier / other formatters
|
|
require("conform").setup({
|
|
formatters_by_ft = {
|
|
javascript = { "prettier" },
|
|
javascriptreact = { "prettier" },
|
|
typescript = { "prettier" },
|
|
typescriptreact = { "prettier" },
|
|
vue = { "prettier" },
|
|
html = { "prettier" },
|
|
css = { "prettier" },
|
|
json = { "prettier" },
|
|
markdown = { "prettier" },
|
|
lua = { "stylua" },
|
|
c = { "clang-format" },
|
|
cpp = { "clang-format" },
|
|
cs = { "csharpier" },
|
|
python = { "black" },
|
|
go = { "gofmt" },
|
|
rust = { "rustfmt" },
|
|
sh = { "shfmt" },
|
|
},
|
|
format_on_save = false, -- keep manual control
|
|
})
|