sam4llis / nvim-tundra

A theme for Neovim with support for LSP, Treesitter, Telescope, and more.
264 stars 6 forks source link

Add support for common terminals #4

Closed vihu closed 1 year ago

vihu commented 2 years ago

It would be nice to export ansi/bright colors for some commonly used terminals like kitty, iterm and wezterm.

sam4llis commented 2 years ago

I’ll aim to upload some configurations this weekend for iTerm, WezTerm, etc. Thanks for bringing this to my attention :)

sam4llis commented 2 years ago

Commit 3cdc9d1 in the dev branch adds iTerm-2 ANSI support.

vihu commented 2 years ago

Commit 3cdc9d1 in the dev branch adds iTerm-2 ANSI support.

This looks good!

I would suggest opening a PR over https://github.com/mbadolato/iTerm2-Color-Schemes for maximum compatibility purposes. I believe wezterm (and maybe kitty) can both benefit if the colorscheme for iterm existed in that repository.

Furthermore, you'd not have to maintain multiple terminal schemes within this repo :)

Reference: https://github.com/wez/wezterm/pull/2221#issuecomment-1174332521 https://github.com/catppuccin/wezterm/issues/6

sam4llis commented 2 years ago

Great, I’ll likely have a closer look into this at the weekend :)

sam4llis commented 2 years ago

Commit 825ebb7 in the dev branch adds wezterm ANSI support.

vihu commented 2 years ago

Commit 825ebb7 in the dev branch adds wezterm ANSI support.

Just a suggestion, maybe instead of having to configure using the colors table, add something like tundra.toml to an extras/wezterm directory instead?

For example, tundra.toml could look like this:

# Tundra

[colors]
foreground = "#D1D5DB"
background = "#111827"

cursor_fg = "#111827"
cursor_bg = "#D1D5DB"
cursor_border = "#111827"

selection_fg = "#DDD6FE"
selection_bg = "#374151"

scrollbar_thumb = "#6B7280"
split = "#6B7280"

ansi = [ "#6B7280", "#FCA5A5", "#B1E3AD", "#FBC19D", "#BAE6FD", "#957FB8", "#DDD6FE", "#A5F3FC" ]
brights = [ "#6B7280", "#FCA5A5", "#B1E3AD", "#FBC19D", "#BAE6FD", "#938AA9", "#DDD6FE", "#A5F3FC" ]

[metadata]
author = "Sam Ellis"
name = "Tundra"

I can confirm that this works just fine with wezterm :)

metalelf0 commented 1 year ago

And here's my attempt for a kitty one:

background #111827
foreground #D1D5DB
selection_foreground #111827
selection_background #BAE6FD

cursor #B1E3AD

url_color #DDD6FE
tab_bar_background #383E4F
active_tab_background #BAE6FD
active_tab_foreground #111827
inactive_tab_background #383E4F
inactive_tab_foreground #D1D5DB

color0 #6B7280
color1 #6B7280
color2 #FCA5A5
color3 #FCA5A5
color4 #B1E3AD
color5 #B1E3AD
color6 #FBC19D
color7 #FBC19D
color8 #BAE6FD
color9 #BAE6FD
color10 #957FB8
color11 #938AA9
color12 #DDD6FE
color13 #DDD6FE
color14 #A5F3FC
color15 #A5F3FC
sam4llis commented 1 year ago

Thanks for this :) Somebody else actually created a pull request for Kitty support (#9) if you’re interested in how yours compares!

sam4llis commented 1 year ago

I'm going to close this issue as we now have integrations for Alacritty, iTerm, Kitty, WezTerm, and Windows Terminal. If there are any integrations you want adding please feel free to create a new issue/pull request!