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 = {
|
||||
enable = true;
|
||||
settings = {
|
||||
env.TERM = "xterm-256color";
|
||||
scrolling.history = 0;
|
||||
font = {
|
||||
size = 10;
|
||||
size = 9;
|
||||
normal = {
|
||||
family = "Jetbrains Mono";
|
||||
style = "Regular";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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}'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue