From a04f9cd914055244f29e9ff17aa7a723f5db2405 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 17 Jan 2023 23:53:34 +0100 Subject: feat: migration to lazy --- lua/alpha/rest.lua | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 lua/alpha/rest.lua (limited to 'lua/alpha/rest.lua') diff --git a/lua/alpha/rest.lua b/lua/alpha/rest.lua deleted file mode 100644 index a5838ff..0000000 --- a/lua/alpha/rest.lua +++ /dev/null @@ -1,35 +0,0 @@ -local rest_nvim = require("rest-nvim") - -rest_nvim.setup({ - -- Open request results in a horizontal split - result_split_horizontal = false, - -- Skip SSL verification, useful for unknown certificates - skip_ssl_verification = false, - -- Highlight request on run - highlight = { - enabled = true, - timeout = 150, - }, - result = { - -- toggle showing URL, HTTP info, headers at top the of result window - show_url = true, - show_http_info = true, - show_headers = true, - }, - -- Jump to request line on run - jump_to_request = false, - env_file = ".env", - custom_dynamic_variables = {}, - yank_dry_run = true, -}) - -vim.api.nvim_create_autocmd("FileType", { - pattern = "http", - callback = function () - local buff = tonumber(vim.fn.expand(""), 10) - vim.keymap.set("n", "rn", rest_nvim.run, { noremap = true, buffer = buff }) - vim.keymap.set("n", "rl", rest_nvim.last, { noremap = true, buffer = buff }) - vim.keymap.set("n", "rp", function () rest_nvim.run(true) end, { noremap = true, buffer = buff }) - end -}) - -- cgit v1.2.3