Fixed terminal true-color
This commit is contained in:
parent
2ab386ce5c
commit
dfe9de1d0f
4 changed files with 8 additions and 2 deletions
|
@ -15,9 +15,10 @@ in
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
env.TERM = "xterm-256color";
|
||||||
scrolling.history = 0;
|
scrolling.history = 0;
|
||||||
font = {
|
font = {
|
||||||
size = 10;
|
size = 9;
|
||||||
normal = {
|
normal = {
|
||||||
family = "Jetbrains Mono";
|
family = "Jetbrains Mono";
|
||||||
style = "Regular";
|
style = "Regular";
|
||||||
|
|
|
@ -29,6 +29,8 @@ in
|
||||||
};
|
};
|
||||||
delta = {
|
delta = {
|
||||||
navigate = true; # use n and N to move between diff sections
|
navigate = true; # use n and N to move between diff sections
|
||||||
|
side-by-side = false;
|
||||||
|
line-numbers = true;
|
||||||
};
|
};
|
||||||
diff = {
|
diff = {
|
||||||
renames = "copies";
|
renames = "copies";
|
||||||
|
|
|
@ -10,13 +10,14 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
terminal = "xterm-256color";
|
terminal = "tmux-256color";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
setw -g mode-keys vi
|
setw -g mode-keys vi
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
set -g set-clipboard external
|
set -g set-clipboard external
|
||||||
set -g set-titles on
|
set -g set-titles on
|
||||||
set -g status on
|
set -g status on
|
||||||
|
set -ga terminal-overrides ',*256col*:Tc'
|
||||||
set-option -g status-interval 5
|
set-option -g status-interval 5
|
||||||
set-option -g automatic-rename on
|
set-option -g automatic-rename on
|
||||||
set-option -g automatic-rename-format '#{b:pane_current_path}'
|
set-option -g automatic-rename-format '#{b:pane_current_path}'
|
||||||
|
|
|
@ -51,6 +51,8 @@ set mouse=a
|
||||||
syntax enable
|
syntax enable
|
||||||
|
|
||||||
if (has("termguicolors"))
|
if (has("termguicolors"))
|
||||||
|
let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
|
||||||
|
let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
|
||||||
set termguicolors
|
set termguicolors
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue