feat: added barbecue support (#285)

* feat: add barbecue support

* docs(readme): add barbecue to support list and provide sample config

* fix(barbecue): use Special's fg (blue1) for context_null
This commit is contained in:
Amirabbas Fazelinia
2022-12-30 01:12:26 +03:30
committed by GitHub
parent 2c2287db18
commit 96fa7191e3
2 changed files with 53 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ extra themes for Kitty, Alacritty, iTerm and Fish.
- [Indent Blankline](https://github.com/lukas-reineke/indent-blankline.nvim) - [Indent Blankline](https://github.com/lukas-reineke/indent-blankline.nvim)
- [Dashboard](https://github.com/glepnir/dashboard-nvim) - [Dashboard](https://github.com/glepnir/dashboard-nvim)
- [BufferLine](https://github.com/akinsho/nvim-bufferline.lua) - [BufferLine](https://github.com/akinsho/nvim-bufferline.lua)
- [Barbecue](https://github.com/utilyre/barbecue.nvim)
- [Lualine](https://github.com/hoob3rt/lualine.nvim) - [Lualine](https://github.com/hoob3rt/lualine.nvim)
- [Lightline](https://github.com/itchyny/lightline.vim) - [Lightline](https://github.com/itchyny/lightline.vim)
- [Neogit](https://github.com/TimUntersberger/neogit) - [Neogit](https://github.com/TimUntersberger/neogit)
@@ -95,6 +96,16 @@ colorscheme tokyonight-moon
vim.cmd[[colorscheme tokyonight]] vim.cmd[[colorscheme tokyonight]]
``` ```
To enable the `tokyonight` theme for `Barbecue`:
```lua
require('barbecue').setup {
-- ... your barbecue config
theme = 'tokyonight',
-- ... your barbecue config
}
```
To enable the `TokyoNight` theme for `Lualine`, simply specify it in your To enable the `TokyoNight` theme for `Lualine`, simply specify it in your
lualine settings: lualine settings:

View File

@@ -0,0 +1,42 @@
local c = require("tokyonight.colors").setup({ transform = true })
local M = {
normal = { bg = c.none, fg = c.fg_dark },
ellipsis = { fg = c.dark5 },
separator = { fg = c.dark5 },
modified = { fg = c.warning },
dirname = { fg = c.dark5 },
basename = { fg = c.fg_dark, bold = true },
context = { fg = c.fg_dark },
context_file = { fg = c.fg_dark },
context_module = { fg = c.yellow },
context_namespace = { fg = c.yellow },
context_package = { fg = c.blue },
context_class = { fg = c.orange },
context_method = { fg = c.blue },
context_property = { fg = c.green1 },
context_field = { fg = c.green1 },
context_constructor = { fg = c.blue },
context_enum = { fg = c.orange },
context_interface = { fg = c.orange },
context_function = { fg = c.blue },
context_variable = { fg = c.magenta },
context_constant = { fg = c.magenta },
context_string = { fg = c.green },
context_number = { fg = c.orange },
context_boolean = { fg = c.orange },
context_array = { fg = c.orange },
context_object = { fg = c.orange },
context_key = { fg = c.purple },
context_null = { fg = c.blue1 },
context_enum_member = { fg = c.green1 },
context_struct = { fg = c.orange },
context_event = { fg = c.orange },
context_operator = { fg = c.green1 },
context_type_parameter = { fg = c.green1 },
}
return M