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

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lua/lazy/core/config.lua

+1
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

+1-1
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)