mirror of
https://github.com/NotAShelf/direnv.nvim.git
synced 2025-10-03 15:33:35 +00:00
honor silent_autoload
for initialization message
This commit is contained in:
parent
eab8a55ea8
commit
fc17d1aa6b
1 changed files with 4 additions and 2 deletions
|
@ -13,7 +13,7 @@ local M = {}
|
||||||
--- @field keybindings.edit string Keybinding to edit .envrc
|
--- @field keybindings.edit string Keybinding to edit .envrc
|
||||||
--- @field notifications table Notification settings
|
--- @field notifications table Notification settings
|
||||||
--- @field notifications.level integer Log level for notifications
|
--- @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 = {
|
local cache = {
|
||||||
status = nil,
|
status = nil,
|
||||||
|
@ -603,7 +603,9 @@ M.setup = function(user_config)
|
||||||
|
|
||||||
process_notification_queue()
|
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
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue