From b05e90ba8b00d5199930a1b6e0f9fa8983600035 Mon Sep 17 00:00:00 2001 From: siduck Date: Thu, 5 May 2022 22:49:51 +0530 Subject: [PATCH] rm highlight coloring of bufferline, web-devicons (#1025) --- lua/plugins/configs/bufferline.lua | 96 +----------------------------- lua/plugins/configs/icons.lua | 29 --------- 2 files changed, 2 insertions(+), 123 deletions(-) diff --git a/lua/plugins/configs/bufferline.lua b/lua/plugins/configs/bufferline.lua index 90adece..2b16535 100644 --- a/lua/plugins/configs/bufferline.lua +++ b/lua/plugins/configs/bufferline.lua @@ -1,10 +1,9 @@ local present, bufferline = pcall(require, "bufferline") + if not present then return end -local colors = require("base16").get_colors "base_30" - local options = { options = { offsets = { { filetype = "NvimTree", text = "", padding = 1 } }, @@ -24,6 +23,7 @@ local options = { separator_style = "thin", always_show_bufferline = true, diagnostics = false, + themable = true, custom_filter = function(buf_number) -- Func to filter out our managed/persistent split terms local present_type, type = pcall(function() @@ -42,98 +42,6 @@ local options = { return true end, }, - - highlights = { - background = { - guifg = colors.grey_fg, - guibg = colors.black2, - }, - - -- buffers - buffer_selected = { - guifg = colors.white, - guibg = colors.black, - gui = "bold", - }, - buffer_visible = { - guifg = colors.light_grey, - guibg = colors.black2, - }, - - -- for diagnostics = "nvim_lsp" - error = { - guifg = colors.light_grey, - guibg = colors.black2, - }, - error_diagnostic = { - guifg = colors.light_grey, - guibg = colors.black2, - }, - - -- close buttons - close_button = { - guifg = colors.light_grey, - guibg = colors.black2, - }, - close_button_visible = { - guifg = colors.light_grey, - guibg = colors.black2, - }, - close_button_selected = { - guifg = colors.red, - guibg = colors.black, - }, - fill = { - guifg = colors.grey_fg, - guibg = colors.black2, - }, - indicator_selected = { - guifg = colors.black, - guibg = colors.black, - }, - - -- modified - modified = { - guifg = colors.red, - guibg = colors.black2, - }, - modified_visible = { - guifg = colors.red, - guibg = colors.black2, - }, - modified_selected = { - guifg = colors.green, - guibg = colors.black, - }, - - -- separators - separator = { - guifg = colors.black2, - guibg = colors.black2, - }, - separator_visible = { - guifg = colors.black2, - guibg = colors.black2, - }, - separator_selected = { - guifg = colors.black2, - guibg = colors.black2, - }, - - -- tabs - tab = { - guifg = colors.light_grey, - guibg = colors.one_bg3, - }, - tab_selected = { - guifg = colors.black2, - guibg = colors.nord_blue, - }, - tab_close = { - guifg = colors.red, - guibg = colors.black, - }, - }, } -- check for any override diff --git a/lua/plugins/configs/icons.lua b/lua/plugins/configs/icons.lua index 27f83bd..c3f3ba0 100644 --- a/lua/plugins/configs/icons.lua +++ b/lua/plugins/configs/icons.lua @@ -4,143 +4,114 @@ if not present then return end -local colors = require("base16").get_colors "base_30" - local options = { override = { c = { icon = "", - color = colors.blue, name = "c", }, css = { icon = "", - color = colors.blue, name = "css", }, deb = { icon = "", - color = colors.cyan, name = "deb", }, Dockerfile = { icon = "", - color = colors.cyan, name = "Dockerfile", }, html = { icon = "", - color = colors.baby_pink, name = "html", }, jpeg = { icon = "", - color = colors.dark_purple, name = "jpeg", }, jpg = { icon = "", - color = colors.dark_purple, name = "jpg", }, js = { icon = "", - color = colors.sun, name = "js", }, kt = { icon = "󱈙", - color = colors.orange, name = "kt", }, lock = { icon = "", - color = colors.red, name = "lock", }, lua = { icon = "", - color = colors.blue, name = "lua", }, mp3 = { icon = "", - color = colors.white, name = "mp3", }, mp4 = { icon = "", - color = colors.white, name = "mp4", }, out = { icon = "", - color = colors.white, name = "out", }, png = { icon = "", - color = colors.dark_purple, name = "png", }, py = { icon = "", - color = colors.cyan, name = "py", }, ["robots.txt"] = { icon = "ﮧ", - color = colors.red, name = "robots", }, toml = { icon = "", - color = colors.blue, name = "toml", }, ts = { icon = "ﯤ", - color = colors.teal, name = "ts", }, ttf = { icon = "", - color = colors.white, name = "TrueTypeFont", }, rb = { icon = "", - color = colors.pink, name = "rb", }, rpm = { icon = "", - color = colors.orange, name = "rpm", }, vue = { icon = "﵂", - color = colors.vibrant_green, name = "vue", }, woff = { icon = "", - color = colors.white, name = "WebOpenFontFormat", }, woff2 = { icon = "", - color = colors.white, name = "WebOpenFontFormat2", }, xz = { icon = "", - color = colors.sun, name = "xz", }, zip = { icon = "", - color = colors.sun, name = "zip", }, },