Change neovim and alacritty theme to tokyonight and fix tmux true colours issue

This commit is contained in:
Dave Gallant
2024-04-06 21:50:07 -04:00
parent 0f93c219a9
commit 3bf680a14d

View File

@@ -215,30 +215,33 @@ in
}; };
colors = { colors = {
primary.background = "0x282828"; primary.background = "#1a1b26";
primary.foreground = "0xebdbb2"; primary.foreground = "#a9b1d6";
normal = { normal =
black = "0x282828"; {
red = "0xcc241d"; black = "#32344a";
green = "0x98971a"; red = "#f7768e";
yellow = "0xd79921"; green = "#9ece6a";
blue = "0x458588"; yellow = "#e0af68";
magenta = "0xb16286"; blue = "#7aa2f7";
cyan = "0x689d6a"; magenta = "#ad8ee6";
white = "0xa89984"; cyan = "#449dab";
}; white = "#787c99";
};
bright =
{
black = "#444b6a";
red = "#ff7a93";
green = "#b9f27c";
yellow = "#ff9e64";
blue = "#7da6ff";
magenta = "#bb9af7";
cyan = "#0db9d7";
white = "#acb0d0";
};
bright = {
black = "0x928374";
red = "0xfb4934";
green = "0xb8bb26";
yellow = "0xfabd2f";
blue = "0x83a598";
magenta = "0xd3869b";
cyan = "0x8ec07c";
white = "0xebdbb2";
};
key_bindings = [ key_bindings = [
{ {
@@ -268,7 +271,7 @@ in
tmux = { tmux = {
enable = true; enable = true;
clock24 = true; clock24 = true;
terminal = "xterm-256color"; terminal = "tmux-256color";
customPaneNavigationAndResize = true; customPaneNavigationAndResize = true;
plugins = with pkgs.tmuxPlugins; [ plugins = with pkgs.tmuxPlugins; [
{ {
@@ -316,6 +319,13 @@ in
set-window-option -g automatic-rename on set-window-option -g automatic-rename on
set-option -g set-titles on set-option -g set-titles on
# Proper colors
set-option -sa terminal-features ',alacritty:RGB'
# Undercurl
set-option -g default-terminal "tmux-256color"
set-option -ga terminal-features ",alacritty:usstyle"
set -g mouse on set -g mouse on
set -g status-left-length 30 set -g status-left-length 30
@@ -359,7 +369,10 @@ in
enable = true; enable = true;
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
colorschemes.gruvbox.enable = true; colorschemes.tokyonight = {
enable = true;
style = "night";
};
keymaps = [ keymaps = [
{ {
key = "<C-n>"; key = "<C-n>";
@@ -397,7 +410,7 @@ in
]; ];
plugins = { plugins = {
auto-save.enable = true; auto-save.enable = false;
copilot-vim.enable = true; copilot-vim.enable = true;
cmp-path.enable = true; cmp-path.enable = true;
cmp-treesitter.enable = true; cmp-treesitter.enable = true;