lang/rest: update (w/ keybindings + :popup)

This commit is contained in:
Henrik Lissner 2017-05-07 02:27:18 +02:00
parent cc37a2d6e7
commit d64ee3c2f6

View file

@ -2,7 +2,15 @@
(def-package! restclient (def-package! restclient
:commands restclient-mode :commands restclient-mode
:mode ("\\.http$" . restclient-mode)) :mode ("\\.http$" . restclient-mode)
:config
(set! :popup "*HTTP Response*" :size 30 :select t :noesc t :autokill t)
(map! :mode restclient-mode
:n [M-return] 'restclient-http-send-current
:localleader
:desc "Execute HTTP request" :n "e" 'restclient-http-send-current
:desc "Execute raw HTTP request" :n "E" 'restclient-http-send-current-raw
:desc "Copy curl command" :n "c" 'restclient-copy-curl-command))
(def-package! company-restclient (def-package! company-restclient