honor silent_autoload for initialization message

This commit is contained in:
raf 2025-06-09 13:42:54 +03:00
commit fc17d1aa6b
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -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