Skip to content

Commit

Permalink
feat: added barbecue support (#285)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
utilyre authored Dec 29, 2022
1 parent 2c2287d commit 96fa719
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ extra themes for Kitty, Alacritty, iTerm and Fish.
- [Indent Blankline](https://github.com/lukas-reineke/indent-blankline.nvim)
- [Dashboard](https://github.com/glepnir/dashboard-nvim)
- [BufferLine](https://github.com/akinsho/nvim-bufferline.lua)
- [Barbecue](https://github.com/utilyre/barbecue.nvim)
- [Lualine](https://github.com/hoob3rt/lualine.nvim)
- [Lightline](https://github.com/itchyny/lightline.vim)
- [Neogit](https://github.com/TimUntersberger/neogit)
Expand Down Expand Up @@ -95,6 +96,16 @@ colorscheme tokyonight-moon
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
lualine settings:

Expand Down
42 changes: 42 additions & 0 deletions lua/barbecue/theme/tokyonight.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 96fa719

Please sign in to comment.