Merge pull request #3243 from Emiller88/counsel-jq

Feat: add counsel-jq
This commit is contained in:
Henrik Lissner 2020-06-01 19:56:35 -04:00 committed by GitHub
commit 188878d1ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 1 deletions

View file

@ -11,4 +11,15 @@
(map! :after json-mode
:map json-mode-map
:localleader
"s" #'jsons-print-path))
"p" #'jsons-print-path))
(use-package! counsel-jq
:when (featurep! :completion ivy)
:defer t
:init
(map! :after json-mode
:map json-mode-map
:localleader
"s" #'counsel-jq))

View file

@ -0,0 +1,4 @@
;;; lang/json/doctor.el -*- lexical-binding: t; -*-
(unless (executable-find "jq")
(warn! "Couldn't find jq. counsel-jq won't work."))

View file

@ -3,3 +3,5 @@
(package! json-mode :pin "0e819e519a")
(package! json-snatcher :pin "c4cecc0a50")
(when (featurep! :completion ivy)
(package! counsel-jq :pin "b14dfc5c18"))