feat(formatters): add jq as default json formatter

This commit is contained in:
Guz
2024-12-09 16:29:28 -03:00
parent 2e81154a99
commit 9c84ed22d4
2 changed files with 6 additions and 1 deletions

View File

@@ -57,7 +57,11 @@ return {
typescript = js_fmt, typescript = js_fmt,
typescriptreact = js_fmt, typescriptreact = js_fmt,
json = function(bufnr) json = function(bufnr)
return { table.unpack(js_fmt(bufnr)), "jq" } local fmts = js_fmt(bufnr)
if fmts then
return fmts
end
return { "jq" }
end, end,
-- Fallback for any filetype -- Fallback for any filetype

View File

@@ -86,6 +86,7 @@
packages = with pkgs; [ packages = with pkgs; [
lf lf
ripgrep ripgrep
jq
inputs.go-grip.packages.${pkgs.system}.default inputs.go-grip.packages.${pkgs.system}.default
]; ];