From 5b35ed9c3288f5c631e04f80674f098d79fe130e Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Thu, 6 Oct 2022 05:20:12 +0000 Subject: feat: all features active by default (#3157) --- lua/lvim/core/notify.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lua/lvim/core/notify.lua') 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 -- cgit v1.2.3