Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sweep Rules] Rename variables and functions in lua/hurl/main.lua #17

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lua/hurl/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -275,7 +275,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)
Expand Down
Loading