diff options
| author | Mohammad Reza Karimi <m.r.karimi.j@gmail.com> | 2026-01-20 15:55:27 -0500 |
|---|---|---|
| committer | Mohammad Reza Karimi <m.r.karimi.j@gmail.com> | 2026-01-20 15:55:27 -0500 |
| commit | aa5717f00fd14430c80939a68d7107c26de6e554 (patch) | |
| tree | 784e99d9b018e0554369c41cb33e2e195e28d3c6 /plugin/plugins/conform.lua | |
first commit
Diffstat (limited to 'plugin/plugins/conform.lua')
| -rw-r--r-- | plugin/plugins/conform.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/plugin/plugins/conform.lua b/plugin/plugins/conform.lua new file mode 100644 index 0000000..7dfcbb7 --- /dev/null +++ b/plugin/plugins/conform.lua @@ -0,0 +1,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" }, + }, + }, +}) |
