Fixed terminal true-color

This commit is contained in:
Tim Schubert 2022-01-30 13:19:40 +01:00
parent 2ab386ce5c
commit dfe9de1d0f
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
4 changed files with 8 additions and 2 deletions

View file

@ -15,9 +15,10 @@ in
programs.alacritty = {
enable = true;
settings = {
env.TERM = "xterm-256color";
scrolling.history = 0;
font = {
size = 10;
size = 9;
normal = {
family = "Jetbrains Mono";
style = "Regular";

View file

@ -29,6 +29,8 @@ in
};
delta = {
navigate = true; # use n and N to move between diff sections
side-by-side = false;
line-numbers = true;
};
diff = {
renames = "copies";

View file

@ -10,13 +10,14 @@ in
config = mkIf cfg.enable {
programs.tmux = {
enable = true;
terminal = "xterm-256color";
terminal = "tmux-256color";
extraConfig = ''
setw -g mode-keys vi
set -g mouse on
set -g set-clipboard external
set -g set-titles on
set -g status on
set -ga terminal-overrides ',*256col*:Tc'
set-option -g status-interval 5
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'

View file

@ -51,6 +51,8 @@ set mouse=a
syntax enable
if (has("termguicolors"))
let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif