2023-04-11 12:57:47 +02:00
|
|
|
{lib}: {
|
2023-02-01 20:11:37 +01:00
|
|
|
onedark = {
|
2023-04-19 13:48:13 +02:00
|
|
|
setup = {
|
|
|
|
style ? "dark",
|
|
|
|
transparent,
|
|
|
|
}: ''
|
2023-02-01 20:11:37 +01:00
|
|
|
-- OneDark theme
|
|
|
|
require('onedark').setup {
|
|
|
|
style = "${style}"
|
|
|
|
}
|
|
|
|
require('onedark').load()
|
|
|
|
'';
|
2023-02-01 22:00:48 +01:00
|
|
|
styles = ["dark" "darker" "cool" "deep" "warm" "warmer"];
|
2023-02-01 20:11:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
tokyonight = {
|
2023-04-19 13:48:13 +02:00
|
|
|
setup = {
|
|
|
|
style ? "night",
|
|
|
|
transparent,
|
|
|
|
}: ''
|
2023-07-17 23:31:21 +02:00
|
|
|
require('tokyonight').setup {
|
|
|
|
transparent = ${lib.boolToString transparent};
|
|
|
|
}
|
2023-04-18 17:10:14 +02:00
|
|
|
vim.cmd[[colorscheme tokyonight-${style}]]
|
2023-02-01 20:11:37 +01:00
|
|
|
'';
|
2023-04-18 17:10:52 +02:00
|
|
|
styles = ["day" "night" "storm" "moon"];
|
2023-02-01 20:11:37 +01:00
|
|
|
};
|
|
|
|
|
2023-04-18 01:01:51 +02:00
|
|
|
dracula = {
|
2023-08-10 16:42:54 +02:00
|
|
|
setup = {
|
|
|
|
style ? null,
|
|
|
|
transparent,
|
|
|
|
}: ''
|
|
|
|
require('dracula').setup({
|
|
|
|
transparent_bg = ${lib.boolToString transparent},
|
|
|
|
});
|
2023-04-18 01:01:51 +02:00
|
|
|
require('dracula').load();
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-02-01 20:11:37 +01:00
|
|
|
catppuccin = {
|
2023-04-11 12:57:47 +02:00
|
|
|
setup = {
|
|
|
|
style ? "mocha",
|
|
|
|
transparent ? false,
|
|
|
|
}: ''
|
2023-02-01 20:11:37 +01:00
|
|
|
-- Catppuccin theme
|
|
|
|
require('catppuccin').setup {
|
2023-02-01 22:00:48 +01:00
|
|
|
flavour = "${style}",
|
2023-04-18 23:54:44 +02:00
|
|
|
transparent_background = ${lib.boolToString transparent},
|
2023-02-01 22:00:48 +01:00
|
|
|
integrations = {
|
|
|
|
nvimtree = {
|
|
|
|
enabled = true,
|
2023-05-24 03:17:10 +02:00
|
|
|
transparent_panel = ${lib.boolToString transparent},
|
2023-02-01 22:00:48 +01:00
|
|
|
show_root = true,
|
|
|
|
},
|
|
|
|
|
|
|
|
hop = true,
|
|
|
|
gitsigns = true,
|
|
|
|
telescope = true,
|
|
|
|
treesitter = true,
|
|
|
|
ts_rainbow = true,
|
2023-05-19 14:14:49 +02:00
|
|
|
fidget = true,
|
2023-05-24 03:17:10 +02:00
|
|
|
alpha = true,
|
|
|
|
leap = true,
|
|
|
|
markdown = true,
|
|
|
|
noice = true,
|
|
|
|
notify = true, -- nvim-notify
|
2023-07-30 17:13:35 +02:00
|
|
|
which_key = true,
|
|
|
|
navic = {
|
|
|
|
enabled = false,
|
|
|
|
custom_bg = "NONE", -- "lualine" will set background to mantle
|
|
|
|
},
|
2023-02-01 22:00:48 +01:00
|
|
|
},
|
2023-02-01 20:11:37 +01:00
|
|
|
}
|
|
|
|
-- setup must be called before loading
|
|
|
|
vim.cmd.colorscheme "catppuccin"
|
|
|
|
'';
|
2023-02-01 22:00:48 +01:00
|
|
|
styles = ["latte" "frappe" "macchiato" "mocha"];
|
2023-02-01 20:11:37 +01:00
|
|
|
};
|
2023-10-21 00:19:29 +02:00
|
|
|
|
|
|
|
oxocarbon = {
|
|
|
|
setup = {
|
|
|
|
style ? "dark",
|
|
|
|
transparent ? false,
|
|
|
|
}: let
|
|
|
|
style' =
|
|
|
|
lib.warnIf (style == "light") "oxocarbon: light theme is not well-supported" style;
|
|
|
|
in ''
|
|
|
|
require('oxocarbon')
|
|
|
|
vim.opt.background = "${style'}"
|
|
|
|
vim.cmd.colorscheme = "oxocarbon"
|
|
|
|
'';
|
|
|
|
styles = ["dark" "light"];
|
|
|
|
};
|
2023-02-01 20:11:37 +01:00
|
|
|
}
|