From 6a66e39f29f8bd1a7dce5e34c0790328f0e0db92 Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Thu, 28 Apr 2022 19:00:39 +0430 Subject: feat(icons): make it possible to disable icons (#2529) --- lua/lvim/core/notify.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lua/lvim/core/notify.lua') diff --git a/lua/lvim/core/notify.lua b/lua/lvim/core/notify.lua index cb62778f..2db4c4d5 100644 --- a/lua/lvim/core/notify.lua +++ b/lua/lvim/core/notify.lua @@ -39,6 +39,15 @@ local defaults = { } function M.config() + if not lvim.use_icons then + defaults.opts.icons = { + ERROR = "[ERROR]", + WARN = "[WARNING]", + INFO = "[INFo]", + DEBUG = "[DEBUG]", + TRACE = "[TRACE]", + } + end lvim.builtin.notify = vim.tbl_deep_extend("force", defaults, lvim.builtin.notify or {}) end -- cgit v1.2.3