Alacritty, Tmux, and Vim
This should make True Color (24-bit) and italics work in your tmux session and vim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Tested successfully in bash and zsh with latest packages from Arch Linux (with exception of neovim built from source):
2019-07-072021-08-07
Notes
Don't use
&t_8f
,&t_8b
andt_Co
in your vim configDon't set
$TERM
in your zshrc, bashrc, etc. Configure this in your terminal (alacritty).Alacritty has no undercurl support, even though tmux has
Testing colors
Running this script should look the same in tmux as without.
Configuration files
Alacritty
In ~/.config/alacritty/alacritty.yml
:
tmux
In ~/.tmux.conf
(or ~/.config/tmux/tmux.conf
):
vim (neovim)
In ~/.vimrc
or ~/.config/nvim/init.vim
:
or ~/.config/nvim/init.lua
:
Last updated