neovim-flake/modules/theme/supported_themes.nix

63 lines
1.3 KiB
Nix
Raw Normal View History

{lib}: {
onedark = {
setup = {
style ? "dark",
transparent,
}: ''
-- OneDark theme
require('onedark').setup {
style = "${style}"
}
require('onedark').load()
'';
styles = ["dark" "darker" "cool" "deep" "warm" "warmer"];
};
tokyonight = {
setup = {
style ? "night",
transparent,
}: ''
vim.cmd[[colorscheme tokyonight-${style}]]
'';
2023-04-18 17:10:52 +02:00
styles = ["day" "night" "storm" "moon"];
};
2023-04-18 01:01:51 +02:00
dracula = {
setup = ''
require('dracula').setup({});
require('dracula').load();
'';
};
catppuccin = {
setup = {
style ? "mocha",
transparent ? false,
}: ''
-- Catppuccin theme
require('catppuccin').setup {
flavour = "${style}",
transparent_background = ${lib.boolToString transparent},
integrations = {
nvimtree = {
enabled = true,
transparent_panel = false,
show_root = true,
},
hop = true,
gitsigns = true,
telescope = true,
treesitter = true,
ts_rainbow = true,
fidget = true,
},
}
-- setup must be called before loading
vim.cmd.colorscheme "catppuccin"
'';
styles = ["latte" "frappe" "macchiato" "mocha"];
};
}