Browse Source

Adding my vs-restclient package

master
Levi Olson 3 years ago
parent
commit
79ab4356d2
No known key found for this signature in database GPG Key ID: 50264B9D44B55DC5
2 changed files with 24 additions and 1 deletions
  1. +19
    -1
      config.el
  2. +5
    -0
      packages.el

+ 19
- 1
config.el View File

@ -352,6 +352,24 @@
(funcall +lookup-open-url-fn (format "https://github.com/search?q=user:LifeOmic+%s" (url-encode-url query)))
)
(use-package! vs-restclient
:bind (:map vs-restclient-mode-map
("C-c C-c" . 'vs-restclient-http-send-current-stay-in-window))
:ensure t)
(use-package! vs-restclient-jq
:after vs-restclient
:ensure t
:config
(vs-restclient-register-result-func
"jq-set-var" #'vs-restclient-jq-json-var-function
"Set a vs-restclient variable with the value jq expression,
takes var & jq expression as args.
eg. -> jq-set-var :my-token .token")
(define-key vs-restclient-response-mode-map (kbd "C-c C-j") #'vs-restclient-jq-interactive-result)
)
(map! :map global-map
"M-t" #'treemacs-select-window
"M-q" #'leo/kill-this-buffer-unless-scratch
@ -380,7 +398,7 @@
"C-c C-r" #'persp-rename
"C-c C-l" #'persp-switch
"C-c C-s" #'persp-switch
"C-c b" #'persp-switch-to-buffer
"C-c b" #'ivy-switch-buffer
;; "C-c b" #'counsel-switch-buffer
"C-s" #'swiper

+ 5
- 0
packages.el View File

@ -63,3 +63,8 @@
(package! graphql-mode)
(package! company-tabnine)
(package! jq-mode)
(package! vs-restclient
:recipe (:host github :repo "leothelocust/vs-restclient.el"))

Loading…
Cancel
Save