summaryrefslogtreecommitdiff
path: root/fnl/plugins/rest.fnl
blob: 6d6f55561dd2445a4a988807b7151aba2215e3a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;; Http client.

(local keybinds [[:<localleader>rr
                  "<cmd>Rest run<cr>"
                  "Run request under the cursor"]
                 [:<localleader>rs
                  "<cmd>Rest run last<cr>"
                  "Re-run last request"]
                 [:<localleader>rt
                  "<cmd>Telescope rest select_env theme=dropdown<cr>"
                  "Select env"]])

{1 :rest-nvim/rest.nvim
 :ft :http
 :dependencies [{1 :vhyrro/luarocks.nvim :priority 1000 :config true}]
 :config (lambda []
           (let [rest-nvim (require :rest-nvim)]
             (rest-nvim.setup {: keybinds})))}