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
end end
-- if upgrades_available then if upgrades_available then
-- return packages_outdated return packages_outdated
-- else else
-- return 0 return 0
-- end end
return 1
end end
local mode = { local mode = {
@@ -115,7 +113,9 @@ return {
indicators = { "1", "2", "3", "4" }, indicators = { "1", "2", "3", "4" },
active_indicators = { "[1]", "[2]", "[3]", "[4]" }, active_indicators = { "[1]", "[2]", "[3]", "[4]" },
separator = " ", separator = " ",
color = { bg = "None", gui = "bold" }, color = function()
return { fg = mode_color[vim.fn.mode()], bg = "None", gui = "bold" }
end,
} }
local copilot = { local copilot = {
"copilot", "copilot",
@@ -153,7 +153,7 @@ return {
cond = require("lazy.status").has_updates, cond = require("lazy.status").has_updates,
color = { fg = colors.violet, bg = "None" }, color = { fg = colors.violet, bg = "None" },
on_click = function() 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 if choice == "Yes" then
vim.cmd("Lazy sync") vim.cmd("Lazy sync")
else else