summaryrefslogtreecommitdiff
path: root/lua/lvim/core/notify.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2022-04-28 19:00:39 +0430
committerGitHub <[email protected]>2022-04-28 19:00:39 +0430
commit6a66e39f29f8bd1a7dce5e34c0790328f0e0db92 (patch)
treedff2e469f7855f7e5388517abdce16af4c3583ca /lua/lvim/core/notify.lua
parentdd65e285656a5c46c52144f4e082c8e2d1d95757 (diff)
feat(icons): make it possible to disable icons (#2529)
Diffstat (limited to 'lua/lvim/core/notify.lua')
-rw-r--r--lua/lvim/core/notify.lua9
1 files changed, 9 insertions, 0 deletions
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