json
This commit is contained in:
parent
7e10d80511
commit
186aa529c5
3 changed files with 40 additions and 15 deletions
|
|
@ -32,6 +32,7 @@ return { -- Autoformat
|
|||
css = { "prettier" },
|
||||
scss = { "prettier" },
|
||||
php = { "php-cs-fixer" },
|
||||
json = { "prettier" },
|
||||
-- Conform can also run multiple formatters sequentially
|
||||
python = { "isort", "black" },
|
||||
},
|
||||
|
|
@ -46,12 +47,6 @@ 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" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue