Tsting dynamic themes for nixvim

This commit is contained in:
iFargle 2024-02-08 19:40:29 +09:00
parent 48ea3ee623
commit 2ddcd12241
7 changed files with 27 additions and 10 deletions

View file

@ -1,7 +1,7 @@
{ inputs, pkgs, config, lib, ... }: { { inputs, pkgs, config, lib, theme, ... }: {
imports = [ imports = [
inputs.nixvim.homeManagerModules.nixvim inputs.nixvim.homeManagerModules.nixvim
]; ] ++ lib.optional (builtins.isString theme) ../../../../stylix/${theme}/home-manager.nix;
programs.nixvim = { programs.nixvim = {
enable = true; enable = true;
@ -67,7 +67,6 @@
gitsigns.enable = true; gitsigns.enable = true;
toggleterm.enable = true; toggleterm.enable = true;
rainbow-delimiters.enable = true; rainbow-delimiters.enable = true;
dashboard.enable = true;
fidget.enable = true; fidget.enable = true;
git-worktree = { git-worktree = {
@ -84,27 +83,27 @@
action = "find_files"; action = "find_files";
desc = "Search files by name"; desc = "Search files by name";
}; };
"ss" = { "<leader>s" = {
action = "live_grep"; action = "live_grep";
desc = "[S]earch by live grep"; desc = "[S]earch by live grep";
}; };
"sb" = { "<leader>b" = {
action = "buffers"; action = "buffers";
desc = "[S]earch open [B]uffers by file name"; desc = "[S]earch open [B]uffers by file name";
}; };
"sh" = { "<leader>h" = {
action = "help_tags"; action = "help_tags";
desc = "[S]earch [H]elp"; desc = "[S]earch [H]elp";
}; };
"sw" = { "<leader>w" = {
action = "grep_string"; action = "grep_string";
desc = "[S]earch for [W]ord under cursor"; desc = "[S]earch for [W]ord under cursor";
}; };
"sg" = { "<leader>g" = {
action = "buffers"; action = "buffers";
desc = "[S]earch [G]it files"; desc = "[S]earch [G]it files";
}; };
"sr" = { "<leader>r" = {
action = "oldfiles"; action = "oldfiles";
desc = "[S]earch [R]ecently opened files by name"; desc = "[S]earch [R]ecently opened files by name";
}; };
@ -138,7 +137,8 @@
}; };
# TODO: Add this to stylix configs # TODO: Add this to stylix configs
colorscheme = lib.mkForce "everforest"; # colorscheme = lib.mkForce "everforest";
colorscheme = lib.mkForce "catpuccin-mocha";
colorschemes = { colorschemes = {
tokyonight.enable = true; tokyonight.enable = true;

View file

@ -4,4 +4,6 @@
polarity = "dark"; polarity = "dark";
base16Scheme = ./everforest-dark-hard.yaml; base16Scheme = ./everforest-dark-hard.yaml;
}; };
} }

View file

@ -0,0 +1,3 @@
{ ... }: {
programs.nixvim.colorscheme = lib.mkForce 500 "everforest";
}

View file

@ -0,0 +1,3 @@
{ ... }: {
programs.nixvim.colorscheme = lib.mkForce 500 "gruvbox";
}

View file

@ -0,0 +1,3 @@
{ ... }: {
programs.nixvim.colorscheme = lib.mkForce 500 "catpuccin-mocha";
}

View file

@ -0,0 +1,3 @@
{ ... }: {
programs.nixvim.colorscheme = lib.mkForce 500 "tokyonight-day";
}

View file

@ -0,0 +1,3 @@
{ ... }: {
programs.nixvim.colorscheme = lib.mkForce 500 "tokyonight-night";
}