From 85822d8c08c8da8a110cd308de63feb46edc7551 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Fri, 14 Oct 2022 14:41:14 -0700 Subject: [PATCH] Fix bug with notify plugin setup --- neovim/lua/plugins.lua | 10 +--------- neovim/lua/plugins/notify.lua | 11 +++++++++++ 2 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 neovim/lua/plugins/notify.lua diff --git a/neovim/lua/plugins.lua b/neovim/lua/plugins.lua index 83b37c3..ad2d89b 100644 --- a/neovim/lua/plugins.lua +++ b/neovim/lua/plugins.lua @@ -401,15 +401,7 @@ use({ use({ "rcarriga/nvim-notify", config = function() - require("notify").setup({ - icons = { - ERROR = utils.diagnostic_signs.Error, - WARN = utils.diagnostic_signs.Warn, - DEBUG = utils.diagnostic_signs.Hint, - INFO = utils.diagnostic_signs.Info, - }, - }) - vim.notify = require("notify") + require("plugins.notify") end, }) diff --git a/neovim/lua/plugins/notify.lua b/neovim/lua/plugins/notify.lua new file mode 100644 index 0000000..eb3c1d7 --- /dev/null +++ b/neovim/lua/plugins/notify.lua @@ -0,0 +1,11 @@ +local utils = require("utils") +require("notify").setup({ + icons = { + ERROR = utils.diagnostic_signs.Error, + WARN = utils.diagnostic_signs.Warn, + DEBUG = utils.diagnostic_signs.Hint, + TRACE = utils.diagnostic_signs.Pencil, + INFO = utils.diagnostic_signs.Info, + }, +}) +vim.notify = require("notify")