This commit is contained in:
Nicolas Rannou 2024-06-20 21:08:26 +02:00
parent c4415dfa6d
commit afc808b48f
2 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,11 @@ return { -- Autoformat
return vim.fs.find({ "dprint.json" }, { path = ctx.filename, upward = true })[1]
end,
},
prettier = {
condition = function(ctx)
return vim.fs.find({ ".prettierrc" }, { path = ctx.filename, upward = true })[1]
end,
},
-- Example of using shfmt with extra args
shfmt = {
extra_args = { "-i", "2", "-ci" },

0
t.ts Normal file
View File