summaryrefslogtreecommitdiff
path: root/lua/lvim/core/notify.lua
diff options
context:
space:
mode:
authorChristian Chiarulli <[email protected]>2022-10-06 05:20:12 +0000
committerGitHub <[email protected]>2022-10-06 01:20:12 -0400
commit5b35ed9c3288f5c631e04f80674f098d79fe130e (patch)
tree25fb471d878b8ed2754e889b1927667f6437240a /lua/lvim/core/notify.lua
parent1eed9f572f29568a65cf2505e2dd37d1c2e7a309 (diff)
feat: all features active by default (#3157)
Diffstat (limited to 'lua/lvim/core/notify.lua')
-rw-r--r--lua/lvim/core/notify.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/lua/lvim/core/notify.lua b/lua/lvim/core/notify.lua
index 272fdced..b08c45a6 100644
--- a/lua/lvim/core/notify.lua
+++ b/lua/lvim/core/notify.lua
@@ -3,7 +3,7 @@ local M = {}
local Log = require "lvim.core.log"
local defaults = {
- active = false,
+ active = true,
on_config_done = nil,
opts = {
---@usage Animation style one of { "fade", "slide", "fade_in_slide_out", "static" }
@@ -58,7 +58,11 @@ function M.setup()
end
local opts = lvim.builtin.notify and lvim.builtin.notify.opts or defaults
- local notify = require "notify"
+
+ local status_ok, notify = pcall(require, "notify")
+ if not status_ok then
+ return
+ end
notify.setup(opts)
vim.notify = notify