Skip to content

Commit a9c660d

Browse files
authored
feat(config,render): allow customizing the debug icon (#1863)
## Description lazy.nvim allows users to configure all icons except for the debug icon. This PR enables user to configure the debug icon with `ui.icons.debug` ## Screenshots Before: ![image](https://github.com/user-attachments/assets/42b02fd9-58e6-4ebc-a1a7-c5e91f07a11a) After (with config `{ ui = { icons = { debug = ' ' } } }`): ![image](https://github.com/user-attachments/assets/3ade5392-a988-4a10-86fc-f52b41a690c5)
1 parent 7e6c863 commit a9c660d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

β€Žlua/lazy/core/config.luaβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ M.defaults = {
9696
icons = {
9797
cmd = "ξ―‡ ",
9898
config = "",
99+
debug = "●",
99100
event = "ξͺ† ",
100101
favorite = "ο€… ",
101102
ft = "ο€– ",

β€Žlua/lazy/view/render.luaβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ function M:debug()
759759
---@type string[]
760760
plugins = vim.tbl_values(plugins)
761761
table.sort(plugins)
762-
self:append("● ", "LazySpecial", { indent = 2 })
762+
self:append(Config.options.ui.icons.debug, "LazySpecial", { indent = 2 })
763763
if handler_type == "keys" then
764764
for k, v in pairs(Config.plugins[plugins[1]]._.handlers.keys) do
765765
if k == value then

0 commit comments

Comments
Β (0)