2025-01-19 01:53:25 +08:00
|
|
|
return {
|
2025-01-24 22:13:56 +08:00
|
|
|
{
|
|
|
|
"stevearc/conform.nvim",
|
2025-01-31 21:44:03 +08:00
|
|
|
opts = function()
|
|
|
|
return {
|
|
|
|
formatters_by_ft = {
|
|
|
|
nix = { "nixfmt" },
|
|
|
|
lua = { "stylua" },
|
|
|
|
javascript = { "prettierd" },
|
|
|
|
javascriptreact = { "prettierd" },
|
|
|
|
typescript = { "prettierd" },
|
|
|
|
typescriptreact = { "prettierd" },
|
|
|
|
json = { "jq" },
|
|
|
|
jsonc = { "jq" },
|
|
|
|
yaml = { "yamlfix" },
|
|
|
|
markdown = { "markdownlint" },
|
|
|
|
["markdown.mdx"] = { "markdownlint" },
|
2025-06-06 10:04:50 +08:00
|
|
|
python = { "ruff_format" },
|
2025-03-14 07:10:56 +08:00
|
|
|
ruby = { "standardrb" },
|
2025-01-19 01:53:25 +08:00
|
|
|
},
|
2025-01-31 21:44:03 +08:00
|
|
|
formatters = {},
|
|
|
|
}
|
|
|
|
end,
|
2025-01-24 22:13:56 +08:00
|
|
|
},
|
2025-01-19 01:53:25 +08:00
|
|
|
}
|