初版。

This commit is contained in:
2025-11-20 11:52:01 +08:00
commit 921909c962
22 changed files with 879 additions and 0 deletions

24
lua/plugins/conform.lua Normal file
View File

@@ -0,0 +1,24 @@
return {
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
xml = { "xmlformatter" },
json = { "prettier" },
cfg = { "prettier" },
},
formatters = {
xmlformatter = {
command = "xmlformat",
args = {
"--indent", "4", "-"
},
stdin = true,
},
prettier = {
prepend_args = {
"--tab-width", "4"
}
}
}
},
}