vim-jq icon indicating copy to clipboard operation
vim-jq copied to clipboard

Indentation error?

Open pengyu opened this issue 4 years ago • 1 comments

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

pengyu avatar Mar 22 '20 20:03 pengyu

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.

bfrg avatar Mar 22 '20 20:03 bfrg