2024-05-23 13:51:05 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
}: let
|
|
|
|
inherit (lib.strings) optionalString;
|
|
|
|
inherit (lib.trivial) boolToString warnIf;
|
|
|
|
in {
|
2023-02-01 19:11:37 +00:00
|
|
|
onedark = {
|
2024-07-08 21:57:58 +00:00
|
|
|
setup = {style ? "dark"}: ''
|
2023-02-01 19:11:37 +00:00
|
|
|
-- OneDark theme
|
|
|
|
require('onedark').setup {
|
|
|
|
style = "${style}"
|
|
|
|
}
|
|
|
|
require('onedark').load()
|
|
|
|
'';
|
2023-02-01 21:00:48 +00:00
|
|
|
styles = ["dark" "darker" "cool" "deep" "warm" "warmer"];
|
2023-02-01 19:11:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
tokyonight = {
|
2023-04-19 11:48:13 +00:00
|
|
|
setup = {
|
|
|
|
style ? "night",
|
|
|
|
transparent,
|
|
|
|
}: ''
|
2023-07-17 21:31:21 +00:00
|
|
|
require('tokyonight').setup {
|
2024-05-23 13:51:05 +00:00
|
|
|
transparent = ${boolToString transparent};
|
2023-07-17 21:31:21 +00:00
|
|
|
}
|
2023-04-18 15:10:14 +00:00
|
|
|
vim.cmd[[colorscheme tokyonight-${style}]]
|
2023-02-01 19:11:37 +00:00
|
|
|
'';
|
2023-04-18 15:10:52 +00:00
|
|
|
styles = ["day" "night" "storm" "moon"];
|
2023-02-01 19:11:37 +00:00
|
|
|
};
|
|
|
|
|
2023-04-17 23:01:51 +00:00
|
|
|
dracula = {
|
2024-07-08 21:57:58 +00:00
|
|
|
setup = {transparent}: ''
|
2023-08-10 14:42:54 +00:00
|
|
|
require('dracula').setup({
|
2024-05-23 13:51:05 +00:00
|
|
|
transparent_bg = ${boolToString transparent},
|
2023-08-10 14:42:54 +00:00
|
|
|
});
|
2023-04-17 23:01:51 +00:00
|
|
|
require('dracula').load();
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-02-01 19:11:37 +00:00
|
|
|
catppuccin = {
|
2023-04-11 10:57:47 +00:00
|
|
|
setup = {
|
|
|
|
style ? "mocha",
|
|
|
|
transparent ? false,
|
|
|
|
}: ''
|
2023-02-01 19:11:37 +00:00
|
|
|
-- Catppuccin theme
|
|
|
|
require('catppuccin').setup {
|
2023-02-01 21:00:48 +00:00
|
|
|
flavour = "${style}",
|
2024-05-23 13:51:05 +00:00
|
|
|
transparent_background = ${boolToString transparent},
|
2024-06-25 16:25:50 +00:00
|
|
|
term_colors = true,
|
2023-02-01 21:00:48 +00:00
|
|
|
integrations = {
|
|
|
|
nvimtree = {
|
|
|
|
enabled = true,
|
2024-05-23 13:51:05 +00:00
|
|
|
transparent_panel = ${boolToString transparent},
|
2023-02-01 21:00:48 +00:00
|
|
|
show_root = true,
|
|
|
|
},
|
|
|
|
|
|
|
|
hop = true,
|
|
|
|
gitsigns = true,
|
|
|
|
telescope = true,
|
|
|
|
treesitter = true,
|
2024-04-24 22:48:55 +00:00
|
|
|
treesitter_context = true,
|
2023-02-01 21:00:48 +00:00
|
|
|
ts_rainbow = true,
|
2023-05-19 12:14:49 +00:00
|
|
|
fidget = true,
|
2023-05-24 01:17:10 +00:00
|
|
|
alpha = true,
|
|
|
|
leap = true,
|
|
|
|
markdown = true,
|
|
|
|
noice = true,
|
|
|
|
notify = true, -- nvim-notify
|
2023-07-30 15:13:35 +00:00
|
|
|
which_key = true,
|
|
|
|
navic = {
|
|
|
|
enabled = false,
|
|
|
|
custom_bg = "NONE", -- "lualine" will set background to mantle
|
|
|
|
},
|
2023-02-01 21:00:48 +00:00
|
|
|
},
|
2023-02-01 19:11:37 +00:00
|
|
|
}
|
|
|
|
-- setup must be called before loading
|
|
|
|
vim.cmd.colorscheme "catppuccin"
|
|
|
|
'';
|
2023-02-01 21:00:48 +00:00
|
|
|
styles = ["latte" "frappe" "macchiato" "mocha"];
|
2023-02-01 19:11:37 +00:00
|
|
|
};
|
2023-10-20 22:19:29 +00:00
|
|
|
|
|
|
|
oxocarbon = {
|
|
|
|
setup = {
|
|
|
|
style ? "dark",
|
|
|
|
transparent ? false,
|
|
|
|
}: let
|
|
|
|
style' =
|
2024-05-23 13:51:05 +00:00
|
|
|
warnIf (style == "light") "oxocarbon: light theme is not well-supported" style;
|
2023-10-20 22:19:29 +00:00
|
|
|
in ''
|
2024-05-23 13:51:05 +00:00
|
|
|
require('oxocarbon')
|
|
|
|
vim.opt.background = "${style'}"
|
|
|
|
vim.cmd.colorscheme = "oxocarbon"
|
|
|
|
${optionalString transparent ''
|
|
|
|
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
|
|
|
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
|
|
|
vim.api.nvim_set_hl(0, "LineNr", { bg = "none" })
|
|
|
|
vim.api.nvim_set_hl(0, "SignColumn", { bg = "none" })
|
2024-05-25 17:37:51 +00:00
|
|
|
${optionalString config.vim.filetree.nvimTree.enable ''
|
2024-05-23 13:51:05 +00:00
|
|
|
vim.api.nvim_set_hl(0, "NvimTreeNormal", { bg = "none" })
|
|
|
|
''}
|
|
|
|
''}
|
2023-10-20 22:19:29 +00:00
|
|
|
'';
|
|
|
|
styles = ["dark" "light"];
|
|
|
|
};
|
2024-01-17 20:08:36 +00:00
|
|
|
|
|
|
|
gruvbox = {
|
|
|
|
setup = {
|
|
|
|
style ? "dark",
|
|
|
|
transparent ? false,
|
|
|
|
}: ''
|
|
|
|
-- Gruvbox theme
|
|
|
|
require("gruvbox").setup({
|
|
|
|
terminal_colors = true, -- add neovim terminal colors
|
|
|
|
undercurl = true,
|
|
|
|
underline = true,
|
|
|
|
bold = true,
|
|
|
|
italic = {
|
|
|
|
strings = true,
|
|
|
|
emphasis = true,
|
|
|
|
comments = true,
|
|
|
|
operators = false,
|
|
|
|
folds = true,
|
|
|
|
},
|
|
|
|
strikethrough = true,
|
|
|
|
invert_selection = false,
|
|
|
|
invert_signs = false,
|
|
|
|
invert_tabline = false,
|
|
|
|
invert_intend_guides = false,
|
|
|
|
inverse = true,
|
|
|
|
contrast = "",
|
|
|
|
palette_overrides = {},
|
|
|
|
overrides = {},
|
|
|
|
dim_inactive = false,
|
2024-05-23 13:51:05 +00:00
|
|
|
transparent_mode = ${boolToString transparent},
|
2024-01-17 20:08:36 +00:00
|
|
|
})
|
|
|
|
vim.o.background = "${style}"
|
|
|
|
vim.cmd("colorscheme gruvbox")
|
|
|
|
'';
|
|
|
|
styles = ["dark" "light"];
|
|
|
|
};
|
2024-02-13 20:41:13 +00:00
|
|
|
rose-pine = {
|
|
|
|
setup = {
|
|
|
|
style ? "main",
|
|
|
|
transparent ? false,
|
|
|
|
}: ''
|
|
|
|
require("rose-pine").setup({
|
|
|
|
dark_variant = "${style}", -- main, moon, or dawn
|
|
|
|
dim_inactive_windows = false,
|
|
|
|
extend_background_behind_borders = true,
|
|
|
|
|
|
|
|
enable = {
|
|
|
|
terminal = true,
|
|
|
|
migrations = true,
|
|
|
|
},
|
|
|
|
|
|
|
|
styles = {
|
|
|
|
bold = false,
|
|
|
|
italic = false, -- I would like to add more options for this
|
2024-05-23 13:51:05 +00:00
|
|
|
transparency = ${boolToString transparent},
|
2024-02-13 20:41:13 +00:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
vim.cmd("colorscheme rose-pine")
|
|
|
|
'';
|
|
|
|
styles = ["main" "moon" "dawn"];
|
|
|
|
};
|
2023-02-01 19:11:37 +00:00
|
|
|
}
|