From 7192b28a24d52b62029c414db46b9fd3a5de475e Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sat, 19 Mar 2022 14:43:07 +0100 Subject: fix(lualine): conditional theme loading (#2363) --- lua/lvim/core/lualine/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/lvim/core/lualine/utils.lua') diff --git a/lua/lvim/core/lualine/utils.lua b/lua/lvim/core/lualine/utils.lua index cf80a99e..d685e044 100644 --- a/lua/lvim/core/lualine/utils.lua +++ b/lua/lvim/core/lualine/utils.lua @@ -1,7 +1,7 @@ local M = {} function M.validate_theme() - local theme = lvim.builtin.lualine.options.theme + local theme = lvim.builtin.lualine.options.theme or "auto" if type(theme) == "table" then return end -- cgit v1.2.3 From c946ddda812c5c2d217061a9016eb8001970d659 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sat, 19 Mar 2022 20:02:45 +0100 Subject: feat: add alpha.nvim integration (#1906) --- lua/lvim/core/lualine/utils.lua | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lua/lvim/core/lualine/utils.lua') diff --git a/lua/lvim/core/lualine/utils.lua b/lua/lvim/core/lualine/utils.lua index d685e044..3fd3c2d3 100644 --- a/lua/lvim/core/lualine/utils.lua +++ b/lua/lvim/core/lualine/utils.lua @@ -1,18 +1,5 @@ local M = {} -function M.validate_theme() - local theme = lvim.builtin.lualine.options.theme or "auto" - if type(theme) == "table" then - return - end - - local lualine_loader = require "lualine.utils.loader" - local ok = pcall(lualine_loader.load_theme, theme) - if not ok then - lvim.builtin.lualine.options.theme = "auto" - end -end - function M.env_cleanup(venv) if string.find(venv, "/") then local final_venv = venv -- cgit v1.2.3