mirror of https://github.com/folke/lazy.nvim.git
feat(ui): make lazy icon configurable (#163)
* feat(ui): make lazy icon configurable * docs: add lazy icon config option
This commit is contained in:
parent
434b7d3edd
commit
8ea9d8b024
|
@ -325,6 +325,7 @@ return {
|
||||||
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 = {
|
||||||
|
|
|
@ -362,6 +362,7 @@ CONFIGURATION *lazy.nvim-configuration*
|
||||||
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 = {
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue