vim-jq
vim-jq copied to clipboard
Indentation error?
The following code is indented like this. I think the first line should not be indented. Is it a bug? Thanks
. as $all
| (.molecules | .[] | [.molecule_structures.standard_inchi_key, .molecule_chembl_id])
, ($all | .not_found? | .[]? | [., ""])
| @tsv
Currently this plugin doesn't provide any indendexpr
for jq files. What you're observing is Vim's builtin indentation.
I am open to adding an indentexpr
but this should probably be discussed first since I'm not 100% sure about the best method. I just haven't seen many jq scripts so far.