feat(ui): make lazy icon configurable (#163)

* feat(ui): make lazy icon configurable

* docs: add lazy icon config option
This commit is contained in:
max397574 2022-12-25 13:41:33 +01:00 committed by GitHub
parent 434b7d3edd
commit 8ea9d8b024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 1 deletions

View File

@ -325,6 +325,7 @@ return {
source = " ",
start = "",
task = "✔ ",
lazy = "鈴 ",
},
throttle = 20, -- how frequently should the ui process render events
custom_keys = {

View File

@ -362,6 +362,7 @@ CONFIGURATION *lazy.nvim-configuration*
source = " ",
start = "",
task = " ",
lazy = " ",
},
throttle = 20, -- how frequently should the ui process render events
custom_keys = {

View File

@ -48,6 +48,7 @@ M.defaults = {
source = "",
start = "",
task = "",
lazy = "",
},
throttle = 20, -- how frequently should the ui process render events
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 .. ") "
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