diff --git a/nvim/colors.vimrc b/nvim/colors.vimrc index e92059f..efe8289 100644 --- a/nvim/colors.vimrc +++ b/nvim/colors.vimrc @@ -1,6 +1,9 @@ " True color support -let &t_8f = "\[38:2:%lu:%lu:%lum" -let &t_8b = "\[48:2:%lu:%lu:%lum" +if exists('+termguicolors') + let &t_8f = "\[38:2:%lu:%lu:%lum" + let &t_8b = "\[48:2:%lu:%lu:%lum" + set termguicolors +endif function! s:sonokai_custom() abort " Link a highlight group to a predefined highlight group. diff --git a/tmux.conf b/tmux.conf index 65aaea8..3ed087e 100644 --- a/tmux.conf +++ b/tmux.conf @@ -47,7 +47,7 @@ bind-key C-x setw synchronize-panes # Better font term set -g default-terminal "tmux-256color" -set -ga terminal-overrides ",*256col*:Tc" +set -ga terminal-overrides ",alacritty:Tc" # Neovim said to... set-option -sg escape-time 10 diff --git a/vimrc b/vimrc index 618dca7..40d8ce6 100644 --- a/vimrc +++ b/vimrc @@ -40,7 +40,6 @@ set splitbelow set splitright set tabstop=2 set termencoding=utf-8 -set termguicolors set textwidth=80 set title set ttyfast