From fc17d1aa6bb3ea9c025a4a93a209f7c727c5f3ce Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 9 Jun 2025 13:42:54 +0300 Subject: [PATCH] honor `silent_autoload` for initialization message --- lua/direnv.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/direnv.lua b/lua/direnv.lua index a3c6cea..fa6fbb1 100644 --- a/lua/direnv.lua +++ b/lua/direnv.lua @@ -13,7 +13,7 @@ local M = {} --- @field keybindings.edit string Keybinding to edit .envrc --- @field notifications table Notification settings --- @field notifications.level integer Log level for notifications ---- @field notifications.silent_autoload boolean Don't show notifications during autoload +--- @field notifications.silent_autoload boolean Don't show notifications during autoload and initialization local cache = { status = nil, @@ -603,7 +603,9 @@ M.setup = function(user_config) process_notification_queue() - notify("direnv.nvim initialized", vim.log.levels.DEBUG) + if not M.config.notifications.silent_autoload then + notify("direnv.nvim initialized", vim.log.levels.DEBUG) + end end return M