Updated config

This commit is contained in:
2024-03-19 13:18:08 +01:00
parent 6c58c037e1
commit 9419d81479

View File

@@ -70,13 +70,11 @@ return {
end
end
-- if upgrades_available then
-- return packages_outdated
-- else
-- return 0
-- end
return 1
if upgrades_available then
return packages_outdated
else
return 0
end
end
local mode = {
@@ -115,7 +113,9 @@ return {
indicators = { "1", "2", "3", "4" },
active_indicators = { "[1]", "[2]", "[3]", "[4]" },
separator = " ",
color = { bg = "None", gui = "bold" },
color = function()
return { fg = mode_color[vim.fn.mode()], bg = "None", gui = "bold" }
end,
}
local copilot = {
"copilot",
@@ -153,7 +153,7 @@ return {
cond = require("lazy.status").has_updates,
color = { fg = colors.violet, bg = "None" },
on_click = function()
local confirmation = vim.ui.select({ "Yes", "No" }, { prompt = "Update plugins?" }, function(choice)
vim.ui.select({ "Yes", "No" }, { prompt = "Update plugins?" }, function(choice)
if choice == "Yes" then
vim.cmd("Lazy sync")
else