This repository has been archived on 2025-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
opdavies.nvim/after/plugin/nvim-rest.lua

18 lines
393 B
Lua
Raw Normal View History

local status_ok, rest_nvim = pcall(require, "rest-nvim")
if not status_ok then
return
end
local nmap = require("opdavies.keymap").nmap
-- Run the request.
nmap { "<leader>rr", "require('rest-nvim').run()" }
-- Preview the request.
nmap { "<leader>rp", "require('rest-nvim').run(true)" }
-- Re-run the last request.
nmap { "<leader>rl", "require('rest-nvim').last()" }
rest_nvim.setup()