From 526974021fcd884f5c88619f86a48b1a764284f5 Mon Sep 17 00:00:00 2001 From: Valentin Charoux Date: Tue, 8 Apr 2025 15:43:07 +0200 Subject: [PATCH 1/2] fix: pass the whole config to select_env_file --- lua/http_client/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/http_client/init.lua b/lua/http_client/init.lua index 2900cf6..d8b411d 100644 --- a/lua/http_client/init.lua +++ b/lua/http_client/init.lua @@ -68,7 +68,7 @@ M.setup = function(opts) -- Set up commands vim.api.nvim_create_user_command("HttpEnvFile", function() - M.commands.select_env.select_env_file(M.config.get()) + M.commands.select_env.select_env_file(M.config.options) end, { desc = "Select an environment file for HTTP requests.", }) From 77332f70456106e695bf867c518f6e1eb4671b00 Mon Sep 17 00:00:00 2001 From: Valentin Charoux Date: Tue, 8 Apr 2025 15:51:19 +0200 Subject: [PATCH 2/2] docs: update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74046be..fafaca1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.4.2] 2025-04-08 +### Fixed +* Fixed bug where `:HttpEnvFile` would give error saying config is nil. + ## [1.4.1] 2025-04-05 ### Improved * Context-aware Autocompletion System