Use prettierd for formatting json instead of jq as it does not support fake json files properly

This commit is contained in:
Tim Huizinga 2025-06-11 14:37:55 +02:00
parent 5b97d37ed3
commit a041084bef
2 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,7 @@ local formatters_by_ft = {
markdown = { "prettierd" }, markdown = { "prettierd" },
yaml = { "prettierd" }, yaml = { "prettierd" },
lua = { "stylua" }, lua = { "stylua" },
json = { "jq" }, json = { "prettierd" },
toml = { "taplo" }, toml = { "taplo" },
-- ["*"] = { "injected" }, -- ["*"] = { "injected" },
["_"] = { "trim_whitespace", "trim_newlines" }, ["_"] = { "trim_whitespace", "trim_newlines" },

View File

@ -26,7 +26,6 @@ local ensure_installed = {
"ruff", "ruff",
"prettierd", "prettierd",
"stylua", "stylua",
"jq",
} }
--- @module "lazy" --- @module "lazy"