From 5ba80b10cf5b413d993435432d8c43a83511ce30 Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Fri, 4 Nov 2022 12:57:24 -0400 Subject: feat: use our own colorscheme, decouple from tokyonight (#3378) Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com> --- lua/lvim/core/lualine/components.lua | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'lua/lvim/core/lualine') diff --git a/lua/lvim/core/lualine/components.lua b/lua/lvim/core/lualine/components.lua index 455ee09a..4f3781ec 100644 --- a/lua/lvim/core/lualine/components.lua +++ b/lua/lvim/core/lualine/components.lua @@ -12,23 +12,9 @@ local function diff_source() end end -local cursorline_hl = vim.api.nvim_get_hl_by_name("CursorLine", true) - -local location_color = nil -local branch = lvim.icons.git.Branch -local separator = lvim.icons.ui.LineMiddle - -if lvim.colorscheme == "tokyonight" then - location_color = "SLBranchName" - branch = "%#SLGitIcon#" .. lvim.icons.git.Branch .. "%*" .. "%#SLBranchName#" - - local status_ok, tnc = pcall(require, "tokyonight.colors") - if status_ok then - local tncolors = tnc.setup { transform = true } - vim.api.nvim_set_hl(0, "SLSeparator", { fg = cursorline_hl.background, bg = tncolors.black }) - separator = "%#SLSeparator#" .. lvim.icons.ui.LineMiddle .. "%*" - end -end +local location_color = "SLBranchName" +local branch = "%#SLGitIcon#" .. lvim.icons.git.Branch .. "%*" .. "%#SLBranchName#" +local separator = "%#SLSeparator#" .. lvim.icons.ui.LineMiddle .. "%*" return { mode = { -- cgit v1.2.3