Skip to content

How to override terminal colors? #674

Answered by pkazmier
pkazmier asked this question in Q&A
Discussion options

You must be logged in to vote

I've figured this out. Will submit a small PR to allow users to override the terminal colors that catppuccin assigns:

iff --git a/lua/catppuccin/lib/mapper.lua b/lua/catppuccin/lib/mapper.lua
index 2f60323..1d5e436 100644
--- a/lua/catppuccin/lib/mapper.lua
+++ b/lua/catppuccin/lib/mapper.lua
@@ -56,6 +56,16 @@ function M.apply(flavour)

    theme.integrations = final_integrations -- plugins
    theme.terminal = require("catppuccin.groups.terminal").get() -- terminal colors
+
+   local user_terminal = O.terminal_overrides
+   if type(user_terminal[flavour]) == "function" then user_terminal[flavour] = user_terminal[flavour](C) end
+   theme.terminal = vim.tbl_deep_extend(
+       "keep",
+

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@pkazmier
Comment options

Comment options

You must be logged in to vote
1 reply
@pkazmier
Comment options

Answer selected by pkazmier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants