feat(formatters): add jq as default json formatter
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user