neovim-rose-pine/lua/rose-pine/plugins/bufferline.lua
not b776a47b8b
feat!: add new options with better support for transparency (#185)
This commit adds a few new options and improves transparency support.

Enable transparency styles:

```lua
styles = { transparency = true }
```

Feedback is appreciated!
2024-01-07 13:42:09 -06:00

223 lines
5 KiB
Lua

--- 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 = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- background = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- tab = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
tab_selected = {
fg = p.text,
bg = p.overlay,
},
-- tab_close = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- close_button = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- close_button_visible = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- close_button_selected = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
buffer_visible = {
fg = p.subtle,
bg = p.base,
},
buffer_selected = {
fg = p.text,
bg = p.surface,
bold = true,
italic = true,
},
-- diagnostic = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- diagnostic_visible = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- diagnostic_selected = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- bold = true,
-- italic = true,
-- },
-- info = {
-- fg = '<color-value-here>',
-- sp = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- info_visible = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- info_selected = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- bold = true,
-- italic = true,
-- sp = '<color-value-here>',
-- },
-- info_diagnostic = {
-- fg = '<color-value-here>',
-- sp = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- info_diagnostic_visible = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- info_diagnostic_selected = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- bold = true,
-- italic = true,
-- sp = '<color-value-here>',
-- },
-- warning = {
-- fg = '<color-value-here>',
-- sp = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- warning_visible = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- warning_selected = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- bold = true,
-- italic = true,
-- sp = '<color-value-here>',
-- },
-- warning_diagnostic = {
-- fg = '<color-value-here>',
-- sp = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- warning_diagnostic_visible = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- warning_diagnostic_selected = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- bold = true,
-- italic = true,
-- sp = warning_diagnostic_fg,
-- },
-- error = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- sp = '<color-value-here>',
-- },
-- error_visible = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- error_selected = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- bold = true,
-- italic = true,
-- sp = '<color-value-here>',
-- },
-- error_diagnostic = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- sp = '<color-value-here>',
-- },
-- error_diagnostic_visible = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- error_diagnostic_selected = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- bold = true,
-- italic = true,
-- sp = '<color-value-here>',
-- },
-- modified = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- modified_visible = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- modified_selected = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- duplicate_selected = {
-- fg = '<color-value-here>',
-- italic = true,
-- bg = '<color-value-here>',
-- },
-- duplicate_visible = {
-- fg = '<color-value-here>',
-- italic = true,
-- bg = '<color-value-here>',
-- },
-- duplicate = {
-- fg = '<color-value-here>',
-- italic = true,
-- bg = '<color-value-here>',
-- },
-- separator_selected = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- separator_visible = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- separator = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- indicator_selected = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- },
-- pick_selected = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- italic = true,
-- },
-- pick_visible = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- bold = true,
-- italic = true,
-- },
-- pick = {
-- fg = '<color-value-here>',
-- bg = '<color-value-here>',
-- bold = true,
-- italic = true,
-- },
}