Determine if ghostty is using an iTerm aligned palette

This commit is contained in:
ViViDboarder 2025-01-15 09:27:52 -08:00
parent 06b7895afd
commit 595ec2fe1b

View File

@ -6,11 +6,12 @@ return {
opts = function(_, opts) opts = function(_, opts)
-- Set ansi base colors for wombat theme based on terminal program -- Set ansi base colors for wombat theme based on terminal program
local term_program = vim.env.TERM_PROGRAM local term_program = vim.env.TERM_PROGRAM
local term_profile = vim.env.TERM_PROFILE
if term_program == "ghostty" then if term_program == "iTerm.app" or term_profile == "wombat-iterm" then
opts.ansi_colors_name = "ghostty"
elseif term_program == "iTerm.app" then
opts.ansi_colors_name = "iterm2" opts.ansi_colors_name = "iterm2"
elseif term_program == "ghostty" then
opts.ansi_colors_name = "ghostty"
end end
return opts return opts