From de6a24e5752553bdfb649a3bdfc87b0bd05e2e3e Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Fri, 10 Jan 2025 11:13:28 -0800 Subject: [PATCH] Wombat: change base ansi colors depending on terminal emulator --- neovim/lua/lazy/colorschemes.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/neovim/lua/lazy/colorschemes.lua b/neovim/lua/lazy/colorschemes.lua index e85eefb..38af39a 100644 --- a/neovim/lua/lazy/colorschemes.lua +++ b/neovim/lua/lazy/colorschemes.lua @@ -3,6 +3,18 @@ local utils = require("utils") return { { "https://github.com/ViViDboarder/wombat.nvim", + opts = function(_, opts) + -- Set ansi base colors for wombat theme based on terminal program + local term_program = vim.env.TERM_PROGRAM + + if term_program == "ghostty" then + opts.ansi_colors_name = "ghostty" + elseif term_program == "iTerm.app" then + opts.ansi_colors_name = "iterm2" + end + + return opts + end, dependencies = { { "https://github.com/rktjmp/lush.nvim",