mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 19:34:15 +00:00
add option ui.button
This commit is contained in:
parent
1cfdc089cd
commit
e94110f46c
1 changed files with 25 additions and 22 deletions
|
@ -112,11 +112,13 @@ function M:get_plugin(row)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M:title()
|
function M:title()
|
||||||
self:nl():nl()
|
self:nl()
|
||||||
local modes = vim.tbl_filter(function(c)
|
local modes = vim.tbl_filter(function(c)
|
||||||
return c.button
|
return c.button
|
||||||
end, ViewConfig.get_commands())
|
end, ViewConfig.get_commands())
|
||||||
|
|
||||||
|
if Config.options.ui.button then
|
||||||
|
self:nl()
|
||||||
for c, mode in ipairs(modes) do
|
for c, mode in ipairs(modes) do
|
||||||
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
|
||||||
|
@ -144,6 +146,7 @@ function M:title()
|
||||||
self:append(" ")
|
self:append(" ")
|
||||||
end
|
end
|
||||||
self:nl()
|
self:nl()
|
||||||
|
end
|
||||||
if self.progress.done < self.progress.total then
|
if self.progress.done < self.progress.total then
|
||||||
self:progressbar()
|
self:progressbar()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue