.dotfiles/configs/nvim/ftplugin/http.lua
2023-04-04 12:09:23 +02:00

12 lines
265 B
Lua

local map = vim.api.nvim_set_keymap;
local function run(verbose)
return require("rest-nvim").run(verbose);
end
local preview = function()
return run(true)
end
map("n", "<leader>r", run, { noremap = true });
map("n", "<leader>p", preview, { noremap = true });