starter/lua/plugins/format.lua

26 lines
648 B
Lua
Raw Normal View History

return {
2025-01-24 22:13:56 +08:00
{
"stevearc/conform.nvim",
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" },
},
formatters = {},
}
end,
2025-01-24 22:13:56 +08:00
},
}