mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 05:40:44 +00:00
dev(theme): disable transparency support by default
This commit is contained in:
parent
6daf32df1d
commit
158a74e00d
3 changed files with 14 additions and 4 deletions
|
@ -9,6 +9,7 @@ with lib; {
|
||||||
enable = mkDefault false;
|
enable = mkDefault false;
|
||||||
name = mkDefault "onedark";
|
name = mkDefault "onedark";
|
||||||
style = mkDefault "darker";
|
style = mkDefault "darker";
|
||||||
|
transparent = mkDefault false;
|
||||||
extraConfig = mkDefault "";
|
extraConfig = mkDefault "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{lib}: {
|
||||||
onedark = {
|
onedark = {
|
||||||
setup = {style ? "dark"}: ''
|
setup = {style ? "dark"}: ''
|
||||||
-- OneDark theme
|
-- OneDark theme
|
||||||
|
@ -20,11 +20,14 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
setup = {style ? "mocha"}: ''
|
setup = {
|
||||||
|
style ? "mocha",
|
||||||
|
transparent ? false,
|
||||||
|
}: ''
|
||||||
-- Catppuccin theme
|
-- Catppuccin theme
|
||||||
require('catppuccin').setup {
|
require('catppuccin').setup {
|
||||||
flavour = "${style}",
|
flavour = "${style}",
|
||||||
transparent_background = true,
|
transparent_background = "${builtins.toString transparent}",
|
||||||
integrations = {
|
integrations = {
|
||||||
nvimtree = {
|
nvimtree = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
|
|
@ -7,7 +7,7 @@ with lib;
|
||||||
with lib.attrsets;
|
with lib.attrsets;
|
||||||
with builtins; let
|
with builtins; let
|
||||||
cfg = config.vim.theme;
|
cfg = config.vim.theme;
|
||||||
supported_themes = import ./supported_themes.nix;
|
supported_themes = import ./supported_themes.nix {inherit lib;};
|
||||||
in {
|
in {
|
||||||
options.vim.theme = {
|
options.vim.theme = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
|
@ -25,6 +25,12 @@ in {
|
||||||
description = "Specific style for theme if it supports it";
|
description = "Specific style for theme if it supports it";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
transparent = mkOption {
|
||||||
|
type = with types; bool;
|
||||||
|
default = false;
|
||||||
|
description = "Whether or not transparency should be enabled. Has no effect for themes that do not support transparency";
|
||||||
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = with types; lines;
|
type = with types; lines;
|
||||||
description = "Additional lua configuration to add before setup";
|
description = "Additional lua configuration to add before setup";
|
||||||
|
|
Loading…
Reference in a new issue