nvim/lua/plugins/conform.lua
Maurice Grönwoldt 70f5f3c859
Vue support fixed
2025-09-17 17:53:46 +02:00

22 lines
608 B
Lua

return {
"stevearc/conform.nvim",
opts = {
format_on_save = {
timeout_ms = 500,
},
formatters_by_ft = {
javascript = { "prettierd", "prettier", stop_after_first = true },
typescript = { "prettierd", "prettier", stop_after_first = true },
vue = { "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",
},
},
},
}