mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-01-22 07:44:13 +00:00
Determine if ghostty is using an iTerm aligned palette
This commit is contained in:
parent
06b7895afd
commit
595ec2fe1b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user