feat(ui): make lazy icon configurable

This commit is contained in:
Max 2022-12-25 10:49:34 +01:00
commit 8da2b3f1fe
2 changed files with 2 additions and 1 deletions

View file

@ -48,6 +48,7 @@ M.defaults = {
source = "", source = "",
start = "", start = "",
task = "", task = "",
lazy = "",
}, },
throttle = 20, -- how frequently should the ui process render events throttle = 20, -- how frequently should the ui process render events
custom_keys = { custom_keys = {

View file

@ -104,7 +104,7 @@ function M:title()
local title = " " .. mode.name:sub(1, 1):upper() .. mode.name:sub(2) .. " (" .. mode.key .. ") " local title = " " .. mode.name:sub(1, 1):upper() .. mode.name:sub(2) .. " (" .. mode.key .. ") "
if mode.name == "home" then if mode.name == "home" then
if self.view.state.mode == "home" then if self.view.state.mode == "home" then
title = " lazy.nvim " title = " lazy.nvim " .. Config.options.ui.icons.lazy
else else
title = " lazy.nvim (H) " title = " lazy.nvim (H) "
end end