From 595ec2fe1babd8288fb9568ad92e9c0ffa6a44f5 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 15 Jan 2025 09:27:52 -0800 Subject: [PATCH] Determine if ghostty is using an iTerm aligned palette --- neovim/lua/lazy/colorschemes.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/neovim/lua/lazy/colorschemes.lua b/neovim/lua/lazy/colorschemes.lua index 8e1cc0b..8918825 100644 --- a/neovim/lua/lazy/colorschemes.lua +++ b/neovim/lua/lazy/colorschemes.lua @@ -6,11 +6,12 @@ return { opts = function(_, opts) -- Set ansi base colors for wombat theme based on terminal program local term_program = vim.env.TERM_PROGRAM + local term_profile = vim.env.TERM_PROFILE - if term_program == "ghostty" then - opts.ansi_colors_name = "ghostty" - elseif term_program == "iTerm.app" then + if term_program == "iTerm.app" or term_profile == "wombat-iterm" then opts.ansi_colors_name = "iterm2" + elseif term_program == "ghostty" then + opts.ansi_colors_name = "ghostty" end return opts