From 9419d814794b8017fd7c9f5ac8327259a9f3e557 Mon Sep 17 00:00:00 2001 From: Taken Date: Tue, 19 Mar 2024 13:18:08 +0100 Subject: [PATCH] Updated config --- lua/taken/plugins/lualine.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lua/taken/plugins/lualine.lua b/lua/taken/plugins/lualine.lua index ae90539..44d4a9b 100644 --- a/lua/taken/plugins/lualine.lua +++ b/lua/taken/plugins/lualine.lua @@ -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