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

View file

@ -4,4 +4,6 @@
polarity = "dark";
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";
}