Updated lualine
This commit is contained in:
@@ -74,6 +74,9 @@ return {
|
|||||||
"branch",
|
"branch",
|
||||||
icon = "",
|
icon = "",
|
||||||
color = { fg = colors.violet, gui = "bold" },
|
color = { fg = colors.violet, gui = "bold" },
|
||||||
|
on_click = function()
|
||||||
|
vim.cmd("Neogit")
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_c = {
|
lualine_c = {
|
||||||
@@ -115,6 +118,19 @@ return {
|
|||||||
require("lazy.status").updates,
|
require("lazy.status").updates,
|
||||||
cond = require("lazy.status").has_updates,
|
cond = require("lazy.status").has_updates,
|
||||||
color = { fg = colors.violet },
|
color = { fg = colors.violet },
|
||||||
|
on_click = function()
|
||||||
|
local confirmation = vim.ui.select(
|
||||||
|
{ "Yes", "No" },
|
||||||
|
{ prompt = "Update plugins?" },
|
||||||
|
function(choice)
|
||||||
|
if choice == "Yes" then
|
||||||
|
vim.cmd("Lazy sync")
|
||||||
|
else
|
||||||
|
vim.notify("Update cancelled", "info", { title = "Lazy" })
|
||||||
|
end
|
||||||
|
end
|
||||||
|
)
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_y = {
|
lualine_y = {
|
||||||
|
|||||||
Reference in New Issue
Block a user