doomemacs/modules/lang/json/config.el
Edmund Miller 2c158c8b81
Feat: add counsel-jq
Co-authored-by: rushsteve1 <rushsteve1@rushsteve1.us>
2020-05-28 10:14:19 -05:00

23 lines
525 B
EmacsLisp

;;; lang/json/config.el -*- lexical-binding: t; -*-
(use-package! json-mode
:mode "\\.js\\(?:on\\|[hl]int\\(?:rc\\)?\\)\\'"
:init
(when (featurep! +lsp)
(add-hook 'json-mode-local-vars-hook #'lsp!))
:config
(set-electric! 'json-mode :chars '(?\n ?: ?{ ?}))
(map! :after json-mode
:map json-mode-map
:localleader
"p" #'jsons-print-path))
(use-package! counsel-jq
:defer t
:init
(map! :after json-mode
:map json-mode-map
:localleader
"s" #'counsel-jq))