mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-01-22 10:54:17 +00:00
Wombat: change base ansi colors depending on terminal emulator
This commit is contained in:
parent
c4dd78d1e8
commit
de6a24e575
@ -3,6 +3,18 @@ local utils = require("utils")
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"https://github.com/ViViDboarder/wombat.nvim",
|
"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 = {
|
dependencies = {
|
||||||
{
|
{
|
||||||
"https://github.com/rktjmp/lush.nvim",
|
"https://github.com/rktjmp/lush.nvim",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user