diff --git a/README.md b/README.md index eb3faa1..31ddfb7 100644 --- a/README.md +++ b/README.md @@ -339,6 +339,8 @@ return { border = "none", title = nil, ---@type string only works when border is not "none" title_pos = "center", ---@type "center" | "left" | "right" + -- Show pills on top of the Lazy window + pills = true, ---@type boolean icons = { cmd = " ", config = "", diff --git a/lua/lazy/core/config.lua b/lua/lazy/core/config.lua index e5e0298..9f51a78 100644 --- a/lua/lazy/core/config.lua +++ b/lua/lazy/core/config.lua @@ -50,7 +50,8 @@ M.defaults = { border = "none", title = nil, ---@type string only works when border is not "none" title_pos = "center", ---@type "center" | "left" | "right" - button = true, ---@type boolean + -- Show pills on top of the Lazy window + pills = true, ---@type boolean icons = { cmd = " ", config = "", diff --git a/lua/lazy/view/render.lua b/lua/lazy/view/render.lua index 51e65db..fe9f87e 100644 --- a/lua/lazy/view/render.lua +++ b/lua/lazy/view/render.lua @@ -117,7 +117,7 @@ function M:title() return c.button end, ViewConfig.get_commands()) - if Config.options.ui.button then + if Config.options.ui.pills then self:nl() for c, mode in ipairs(modes) do local title = " " .. mode.name:sub(1, 1):upper() .. mode.name:sub(2) .. " (" .. mode.key .. ") "