nvim/lua/plugins/conform.lua
Maurice Grönwoldt 18da9560c6
Initial Commit
2025-07-30 16:05:16 +02:00

20 lines
469 B
Lua

return {
"stevearc/conform.nvim",
opts = {
format_on_save = {
timeout_ms = 500,
},
formatters_by_ft = {
javascript = { "prettierd", "prettier", stop_after_first = true },
rust = { "rustfmt", lsp_format = "fallback" },
java = { "spotless", "google-java-format" },
lua = { "stylua" },
cpp = { "clang-format" },
},
formatters = {
spotless = {
command = "mvn spotless:apply",
},
},
},
}