Skip to content

Commit

Permalink
feat(ui): make lazy icon configurable (#163)
Browse files Browse the repository at this point in the history
* feat(ui): make lazy icon configurable

* docs: add lazy icon config option
  • Loading branch information
max397574 committed Dec 25, 2022
1 parent 434b7d3 commit 8ea9d8b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ return {
source = "",
start = "",
task = "",
lazy = "",
},
throttle = 20, -- how frequently should the ui process render events
custom_keys = {
Expand Down
1 change: 1 addition & 0 deletions doc/lazy.nvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ CONFIGURATION *lazy.nvim-configuration*
source = " ",
start = "",
task = " ",
lazy = " ",
},
throttle = 20, -- how frequently should the ui process render events
custom_keys = {
Expand Down
1 change: 1 addition & 0 deletions lua/lazy/core/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ M.defaults = {
source = "",
start = "",
task = "",
lazy = "",
},
throttle = 20, -- how frequently should the ui process render events
custom_keys = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/view/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ea9d8b

Please sign in to comment.