初版。
This commit is contained in:
24
lua/plugins/conform.lua
Normal file
24
lua/plugins/conform.lua
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user