mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-23 05:54:10 +00:00
confusion
This commit is contained in:
parent
e51dce002e
commit
a37625c3b0
12 changed files with 319 additions and 32 deletions
70
modules/plugins/theme/supported-themes/cattpuccin.nix
Normal file
70
modules/plugins/theme/supported-themes/cattpuccin.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.attrsets) genAttrs;
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.types) bool str;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
cfg = config.vim.theme;
|
||||
|
||||
mkEnableOption' = name: mkEnableOption name // {default = true;};
|
||||
in {
|
||||
catppuccin = {
|
||||
setupOpts = mkPluginSetupOption "catppuccin" {
|
||||
flavour = mkOption {
|
||||
type = str;
|
||||
default = cfg.style;
|
||||
# internal = true;
|
||||
};
|
||||
transparent_background = mkOption {
|
||||
type = bool;
|
||||
default = cfg.transparent;
|
||||
internal = true;
|
||||
};
|
||||
term_colors = mkEnableOption' "term_colors";
|
||||
integrations =
|
||||
{
|
||||
nvimtree = {
|
||||
enabled = mkEnableOption' "enabled";
|
||||
transparent_panel = mkOption {
|
||||
type = bool;
|
||||
default = cfg.transparent;
|
||||
};
|
||||
show_root = mkEnableOption' "show_root";
|
||||
};
|
||||
|
||||
navic = {
|
||||
enabled = mkEnableOption' "enabled";
|
||||
# lualine will set backgound to mantle
|
||||
custom_bg = mkOption {
|
||||
type = str;
|
||||
default = "NONE";
|
||||
};
|
||||
};
|
||||
}
|
||||
// genAttrs [
|
||||
"hop"
|
||||
"gitsigns"
|
||||
"telescope"
|
||||
"treesitter"
|
||||
"treesitter_context"
|
||||
"ts_rainbow"
|
||||
"fidget"
|
||||
"alpha"
|
||||
"leap"
|
||||
"markdown"
|
||||
"noice"
|
||||
"notify"
|
||||
"which_key"
|
||||
] (name: mkEnableOption' name);
|
||||
};
|
||||
setup = ''
|
||||
-- Catppuccin theme
|
||||
-- setup must be called before loading
|
||||
vim.cmd.colorscheme "catppuccin"
|
||||
'';
|
||||
styles = ["mocha" "latte" "frappe" "macchiato"];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue