Skip to content

Commit 9df88ea

Browse files
valchxValentin-Chx
andauthored
fix: "attempt to index local 'config' (a nil value)" when running :HttpEnvFile (#9)
* fix: pass the whole config to select_env_file * docs: update changelog --------- Co-authored-by: Valentin Charoux <[email protected]>
1 parent d69a650 commit 9df88ea

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.4.2] 2025-04-08
9+
### Fixed
10+
* Fixed bug where `:HttpEnvFile` would give error saying config is nil.
11+
812
## [1.4.1] 2025-04-05
913
### Improved
1014
* Context-aware Autocompletion System

lua/http_client/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ M.setup = function(opts)
6868

6969
-- Set up commands
7070
vim.api.nvim_create_user_command("HttpEnvFile", function()
71-
M.commands.select_env.select_env_file(M.config.get())
71+
M.commands.select_env.select_env_file(M.config.options)
7272
end, {
7373
desc = "Select an environment file for HTTP requests.",
7474
})

0 commit comments

Comments
 (0)