From fb9d86d9cd1854b5af1ee90561228f924dce0f2c Mon Sep 17 00:00:00 2001 From: siduck Date: Thu, 5 May 2022 22:50:25 +0530 Subject: [PATCH] add integration for bufferline, nvim-webdevicons | fix https://github.com/NvChad/NvChad/issues/1025 --- lua/integrations/bufferline.lua | 103 ++++++++++++++++++++++++++++++++ lua/integrations/devicons.lua | 30 ++++++++++ 2 files changed, 133 insertions(+) create mode 100644 lua/integrations/bufferline.lua create mode 100644 lua/integrations/devicons.lua diff --git a/lua/integrations/bufferline.lua b/lua/integrations/bufferline.lua new file mode 100644 index 0000000..7258994 --- /dev/null +++ b/lua/integrations/bufferline.lua @@ -0,0 +1,103 @@ +local colors = require("base16").get_colors "base_30" + +return { + + BufferLineBackground = { + fg = colors.grey_fg, + bg = colors.black2, + }, + + -- buffers + BufferLineBufferSelected = { + fg = colors.white, + bg = colors.black, + bold = true, + }, + + BufferLineBufferVisible = { + fg = colors.light_grey, + bg = colors.black2, + }, + + -- for diagnostics = "nvim_lsp" + BufferLineError = { + fg = colors.light_grey, + bg = colors.black2, + }, + BufferLineErrorDiagnostic = { + fg = colors.light_grey, + bg = colors.black2, + }, + + -- close buttons + BufferLineCloseButton = { + fg = colors.light_grey, + bg = colors.black2, + }, + BufferLineCloseButtonVisible = { + fg = colors.light_grey, + bg = colors.black2, + }, + BufferLineCloseButtonSelected = { + fg = colors.red, + bg = colors.black, + }, + BufferLineFill = { + fg = colors.grey_fg, + bg = colors.black2, + }, + BufferlineIndicatorSelected = { + fg = colors.black, + bg = colors.black, + }, + + -- modified + BufferLineModified = { + fg = colors.red, + bg = colors.black2, + }, + BufferLineModifiedVisible = { + fg = colors.red, + bg = colors.black2, + }, + BufferLineModifiedSelected = { + fg = colors.green, + bg = colors.black, + }, + + -- separators + BufferLineSeparator = { + fg = colors.black2, + bg = colors.black2, + }, + BufferLineSeparatorVisible = { + fg = colors.black2, + bg = colors.black2, + }, + BufferLineSeparatorSelected = { + fg = colors.black2, + bg = colors.black2, + }, + + -- tabs + BufferLineTab = { + fg = colors.light_grey, + bg = colors.one_bg3, + }, + BufferLineTabSelected = { + fg = colors.black2, + bg = colors.nord_blue, + }, + BufferLineTabClose = { + fg = colors.red, + bg = colors.black, + }, + + BufferLineDevIconDefaultInactive = { + bg = "NONE", + }, + + BufferLineDevIconDefaultSelected = { + bg = "NONE", + }, +} diff --git a/lua/integrations/devicons.lua b/lua/integrations/devicons.lua new file mode 100644 index 0000000..277c6b3 --- /dev/null +++ b/lua/integrations/devicons.lua @@ -0,0 +1,30 @@ +local colors = require("base16").get_colors "base_30" + +return { + DevIconc = { bg = "NONE", fg = colors.blue }, + DevIconcss = { bg = "NONE", fg = colors.blue }, + DevIcondeb = { bg = "NONE", fg = colors.cyan }, + DevIconDockerfile = { bg = "NONE", fg = colors.cyan }, + DevIconhtml = { bg = "NONE", fg = colors.baby_pink }, + DevIconjpeg = { bg = "NONE", fg = colors.dark_purple }, + DevIconjpg = { bg = "NONE", fg = colors.dark_purple }, + DevIconjs = { bg = "NONE", fg = colors.sun }, + DevIconkt = { bg = "NONE", fg = colors.orange }, + DevIconlock = { bg = "NONE", fg = colors.red }, + DevIconlua = { bg = "NONE", fg = colors.blue }, + DevIconmp3 = { bg = "NONE", fg = colors.white }, + DevIconmp4 = { bg = "NONE", fg = colors.white }, + DevIconout = { bg = "NONE", fg = colors.white }, + DevIconpng = { bg = "NONE", fg = colors.dark_purple }, + DevIconpy = { bg = "NONE", fg = colors.cyan }, + DevIcontoml = { bg = "NONE", fg = colors.blue }, + DevIconts = { bg = "NONE", fg = colors.teal }, + DevIconttf = { bg = "NONE", fg = colors.white }, + DevIconrb = { bg = "NONE", fg = colors.pink }, + DevIconrpm = { bg = "NONE", fg = colors.orange }, + DevIconvue = { bg = "NONE", fg = colors.vibrant_green }, + DevIconwoff = { bg = "NONE", fg = colors.white }, + DevIconwoff2 = { bg = "NONE", fg = colors.white }, + DevIconxz = { bg = "NONE", fg = colors.sun }, + DevIconzip = { bg = "NONE", fg = colors.sun }, +}