diff --git a/README.md b/README.md index 8135d150..a4614603 100644 --- a/README.md +++ b/README.md @@ -302,6 +302,7 @@ barbar = false ```lua barbecue = { + enabled = true, dim_dirname = true, -- directory name is dimmed by default bold_basename = true, dim_context = false, diff --git a/lua/catppuccin/init.lua b/lua/catppuccin/init.lua index c10df1cf..c8ae163e 100644 --- a/lua/catppuccin/init.lua +++ b/lua/catppuccin/init.lua @@ -47,6 +47,7 @@ local M = { telescope = { enabled = true }, treesitter = not is_vim, barbecue = { + enabled = true, dim_dirname = true, bold_basename = true, dim_context = false, diff --git a/lua/catppuccin/types.lua b/lua/catppuccin/types.lua index 80e2881d..14069ad8 100644 --- a/lua/catppuccin/types.lua +++ b/lua/catppuccin/types.lua @@ -199,6 +199,8 @@ ---@field which_key boolean ---@class CtpIntegrationBarbecue +--Whether to use custom barbecue theme. +---@field enabled boolean? -- Whether to use the alternative background. ---@field alt_background boolean? -- Whether the basename should be bold. diff --git a/lua/catppuccin/utils/barbecue.lua b/lua/catppuccin/utils/barbecue.lua index cfef00b9..08cbef7f 100644 --- a/lua/catppuccin/utils/barbecue.lua +++ b/lua/catppuccin/utils/barbecue.lua @@ -2,6 +2,10 @@ return function(flavour) local C = require("catppuccin.palettes").get_palette(flavour) local O = require("catppuccin").options + if not O.integrations.barbecue.enabled then + return require("barbecue.theme.default") + end + local transparent_bg = O.transparent_background and C.none or C.mantle local dirname_color = O.integrations.barbecue.dim_dirname and C.overlay1 or C.text diff --git a/vim.yml b/vim.yml index 9e2b2b6a..cbe3e057 100644 --- a/vim.yml +++ b/vim.yml @@ -258,6 +258,9 @@ globals: type: bool property: read-only + O.integrations.barbecue.enabled: + type: bool + property: read-only O.integrations.barbecue.dim_dirname: type: bool property: read-only