From 65dab36b2c6955f4f74ca17fb0e6b18bb5cff1fd Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:38:55 +0000 Subject: [PATCH] feat: Updated lua/hurl/main.lua --- lua/hurl/main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/hurl/main.lua b/lua/hurl/main.lua index 048aaf6..78fb9c4 100644 --- a/lua/hurl/main.lua +++ b/lua/hurl/main.lua @@ -8,7 +8,7 @@ local is_running = false -- Looking for vars.env file base on the current file buffer -- NOTE: Refactor this later if there is a better way, e.g: define scan folders in the configuration ---@return table -local function get_env_file_in_folders() +local function findEnvFilesInFolders() local root_dir = vim.fn.expand('%:p:h') local cache_dir = vim.fn.stdpath('cache') local env_files = { @@ -103,7 +103,7 @@ end --- Call hurl command ---@param opts table The options ---@param callback? function The callback function -local function request(opts, callback) +local function executeHttpRequest(opts, callback) if is_running then vim.notify('hurl: request is running. Please try again later.', vim.log.levels.INFO) return @@ -267,7 +267,7 @@ local function find_http_verb_positions_in_buffer() } end -function M.setup() +function initializeHurlPlugin() utils.create_cmd('HurlRunner', function(opts) if opts.range ~= 0 then run_selection(opts.fargs)