From 892b7ae3aa662fce00dff8e402c2d579d5e93da3 Mon Sep 17 00:00:00 2001 From: Mandy Noto Date: Fri, 30 Dec 2022 16:53:54 -0800 Subject: [PATCH] feat(bufferline): track new version --- lua/rose-pine/plugins/bufferline-new.lua | 262 +++++++++++++++++++++++ 1 file changed, 262 insertions(+) create mode 100644 lua/rose-pine/plugins/bufferline-new.lua diff --git a/lua/rose-pine/plugins/bufferline-new.lua b/lua/rose-pine/plugins/bufferline-new.lua new file mode 100644 index 0000000..d270473 --- /dev/null +++ b/lua/rose-pine/plugins/bufferline-new.lua @@ -0,0 +1,262 @@ +--- Rosé Pine for bufferline +--- https://github.com/akinsho/bufferline.nvim +--- +--- @usage +--- local highlights = require('rose-pine.plugins.bufferline') +--- require('bufferline').setup({ highlights = highlights }) + +local p = require('rose-pine.palette') + +return { + -- fill = { + -- fg = '', + -- bg = '', + -- }, + background = { + fg = p.subtle, + bg = p.surface, + }, + tab = { + fg = p.muted, + bg = p.surface, + }, + tab_selected = { + fg = p.text, + bg = p.overlay, + }, + -- tab_close = { + -- fg = '', + -- bg = '', + -- }, + close_button = { + -- fg = '', + bg = p.surface, + }, + close_button_visible = { + -- fg = p.iris, + bg = p.highlight_low, + }, + close_button_selected = { + fg = p.subtle, + bg = p.overlay, + }, + numbers = { + fg = p.subtle, + bg = p.surface, + }, + numbers_selected = { + fg = p.text, + bg = p.overlay, + bold = true, + italic = false, + -- sp = '', + -- underline = '', + }, + numbers_visible = { + fg = p.subtle, + bg = p.surface, + }, + buffer = { -- new + fg = p.subtle, + bg = p.surface, + }, + buffer_visible = { + fg = p.text, + bg = p.highlight_low, + -- bold = true, + }, + buffer_selected = { + fg = p.text, + bg = p.overlay, + bold = true, + italic = false, + }, + -- diagnostic = { + -- fg = '', + -- bg = '', + -- }, + -- diagnostic_visible = { + -- fg = '', + -- bg = '', + -- }, + -- diagnostic_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- }, + -- info = { + -- fg = '', + -- sp = '', + -- bg = '', + -- }, + -- info_visible = { + -- fg = '', + -- bg = '', + -- }, + -- info_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- sp = '', + -- }, + -- info_diagnostic = { + -- fg = '', + -- sp = '', + -- bg = '', + -- }, + -- info_diagnostic_visible = { + -- fg = '', + -- bg = '', + -- }, + -- info_diagnostic_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- sp = '', + -- }, + -- warning = { + -- fg = '', + -- sp = '', + -- bg = '', + -- }, + -- warning_visible = { + -- fg = '', + -- bg = '', + -- }, + -- warning_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- sp = '', + -- }, + -- warning_diagnostic = { + -- fg = '', + -- sp = '', + -- bg = '', + -- }, + -- warning_diagnostic_visible = { + -- fg = '', + -- bg = '', + -- }, + -- warning_diagnostic_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- sp = warning_diagnostic_fg, + -- }, + -- error = { + -- fg = '', + -- bg = '', + -- sp = '', + -- }, + -- error_visible = { + -- fg = '', + -- bg = '', + -- }, + -- error_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- sp = '', + -- }, + -- error_diagnostic = { + -- fg = '', + -- bg = '', + -- sp = '', + -- }, + -- error_diagnostic_visible = { + -- fg = '', + -- bg = '', + -- }, + -- error_diagnostic_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- sp = '', + -- }, + modified = { + fg = p.muted, + bg = p.surface, + }, + modified_visible = { + fg = p.muted, + bg = p.highlight_low, + }, + modified_selected = { + fg = p.foam, + bg = p.overlay, + }, + duplicate_selected = { + fg = p.subtle, + italic = false, + bg = p.overlay, + }, + duplicate_visible = { + fg = p.subtle, + italic = false, + bg = p.highlight_low, + }, + duplicate = { + fg = p.muted, + italic = false, + bg = p.surface, + }, + -- separator_selected = { + -- fg = '', + -- bg = '', + -- }, + -- separator_visible = { + -- fg = '', + -- bg = '', + -- }, + -- separator = { + -- fg = '', + -- bg = '', + -- }, + tab_separator = { + fg = p.base, + bg = p.surface, + }, + tab_separator_selected = { + fg = p.base, + bg = p.overlay, + -- sp = underline_sp, + -- underline = has_underline_indicator, + }, + indicator_selected = { + fg = p.muted, + bg = p.overlay, + }, + indicator_visible = { + fg = p.muted, + bg = p.base, + }, + pick_selected = { + fg = p.love, + bg = p.overlay, + italic = true, + }, + pick_visible = { + fg = p.love, + bg = p.surface, + bold = true, + italic = true, + }, + pick = { + fg = p.love, + bg = p.surface, + bold = true, + italic = true, + }, + offset_separator = { + fg = p.iris, + -- bg = '', + }, +}