mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 01:38:54 +02:00
fix(notify): install notify when noice is not enabled
This commit is contained in:
parent
cc3070d30e
commit
5d6f0d58d5
1 changed files with 9 additions and 0 deletions
|
@ -20,6 +20,15 @@ return {
|
|||
return math.floor(vim.o.columns * 0.75)
|
||||
end,
|
||||
},
|
||||
init = function()
|
||||
-- when noice is not enabled, install notify on VeryLazy
|
||||
local Util = require("lazyvim.util")
|
||||
if not Util.has("noice.nvim") then
|
||||
Util.on_very_lazy(function()
|
||||
vim.notify = require("notify")
|
||||
end)
|
||||
end
|
||||
end,
|
||||
},
|
||||
|
||||
-- better vim.ui
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue