From 8ea9d8b0241f2b09b65355039ec89446bde94564 Mon Sep 17 00:00:00 2001 From: max397574 <81827001+max397574@users.noreply.github.com> Date: Sun, 25 Dec 2022 13:41:33 +0100 Subject: [PATCH] feat(ui): make lazy icon configurable (#163) * feat(ui): make lazy icon configurable * docs: add lazy icon config option --- README.md | 1 + doc/lazy.nvim.txt | 1 + lua/lazy/core/config.lua | 1 + lua/lazy/view/render.lua | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 22a38ae..9cf9f69 100644 --- a/README.md +++ b/README.md @@ -325,6 +325,7 @@ return { source = " ", start = "", task = "✔ ", + lazy = "鈴 ", }, throttle = 20, -- how frequently should the ui process render events custom_keys = { diff --git a/doc/lazy.nvim.txt b/doc/lazy.nvim.txt index 6858098..0dd63ae 100644 --- a/doc/lazy.nvim.txt +++ b/doc/lazy.nvim.txt @@ -362,6 +362,7 @@ CONFIGURATION *lazy.nvim-configuration* source = " ", start = "", task = " ", + lazy = " ", }, throttle = 20, -- how frequently should the ui process render events custom_keys = { diff --git a/lua/lazy/core/config.lua b/lua/lazy/core/config.lua index 1cb90dc..e002a71 100644 --- a/lua/lazy/core/config.lua +++ b/lua/lazy/core/config.lua @@ -48,6 +48,7 @@ M.defaults = { source = " ", start = "", task = "✔ ", + lazy = "鈴 ", }, throttle = 20, -- how frequently should the ui process render events custom_keys = { diff --git a/lua/lazy/view/render.lua b/lua/lazy/view/render.lua index 934a8c2..c7b5e8f 100644 --- a/lua/lazy/view/render.lua +++ b/lua/lazy/view/render.lua @@ -104,7 +104,7 @@ function M:title() local title = " " .. mode.name:sub(1, 1):upper() .. mode.name:sub(2) .. " (" .. mode.key .. ") " if mode.name == "home" then if self.view.state.mode == "home" then - title = " lazy.nvim 鈴 " + title = " lazy.nvim " .. Config.options.ui.icons.lazy else title = " lazy.nvim (H) " end