diff --git a/lua/lazy/core/config.lua b/lua/lazy/core/config.lua index daef111..ae751ce 100644 --- a/lua/lazy/core/config.lua +++ b/lua/lazy/core/config.lua @@ -18,6 +18,9 @@ M.defaults = { packpath = vim.fn.stdpath("data") .. "/site/pack/lazy", lockfile = vim.fn.stdpath("config") .. "/lazy-lock.json", view = { + ui = { + -- The border to use for the UI window. Accepts same border values as |nvim_open_win()|. + border = "none", icons = { start = "", plugin = " ", @@ -26,10 +29,9 @@ M.defaults = { event = "", keys = " ", cmd = " ", - ft = "", + ft = " ", task = "✔ ", }, - }, install_missing = true, git = { -- defaults for `Lazy log` diff --git a/lua/lazy/view/init.lua b/lua/lazy/view/init.lua index 51bb8e0..c7007c0 100644 --- a/lua/lazy/view/init.lua +++ b/lua/lazy/view/init.lua @@ -53,6 +53,7 @@ function M.show(mode) local opts = { relative = "editor", style = "minimal", + border = Config.options.ui.border, width = math.min(vim.o.columns - hpad * 2, 200), height = math.min(vim.o.lines - vpad * 2, 70), } diff --git a/lua/lazy/view/render.lua b/lua/lazy/view/render.lua index 6c528f7..4a3b7df 100644 --- a/lua/lazy/view/render.lua +++ b/lua/lazy/view/render.lua @@ -237,7 +237,7 @@ function M:reason(reason, opts) value = value:match("User (.*)") or value end local hl = "LazyLoader" .. key:sub(1, 1):upper() .. key:sub(2) - local icon = Config.options.view.icons[key] + local icon = Config.options.ui.icons[key] if icon then self:append(icon .. " ", hl) self:append(value, hl)