diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-03-25 20:36:00 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-03-25 20:36:00 +0100 |
commit | 3986ab171ff3e784932a87840e7e8463774f5b19 (patch) | |
tree | af20dd0d76a67a2aa89a4a6d110c7e8a912516f4 /fnl/plugins/rest.fnl | |
parent | add2292efbed0be9ad5694c22ee9a3b12c1de726 (diff) |
Add rest plugin
Diffstat (limited to 'fnl/plugins/rest.fnl')
-rw-r--r-- | fnl/plugins/rest.fnl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fnl/plugins/rest.fnl b/fnl/plugins/rest.fnl new file mode 100644 index 0000000..6d6f555 --- /dev/null +++ b/fnl/plugins/rest.fnl @@ -0,0 +1,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})))} |