local feedkeys = vim.fn.feedkeys return { "NTBBloodbath/rest.nvim", init = function() vim.api.nvim_create_user_command("RestNvim", function() feedkeys(t("RestNvim"), "") end, { nargs = "*" }) vim.api.nvim_create_user_command("RestNvimPreview", function() feedkeys(t("RestNvimPreview"), "") end, { nargs = "*" }) end, config = function() require("rest-nvim").setup({ -- Open request results in a horizontal split result_split_horizontal = false, -- Keep the http file buffer above|left when split horizontal|vertical result_split_in_place = 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, }) end, }