mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-18 18:01:17 +00:00
modules: add base16 Theming support
theme/theme.nix: fix formatting supported-themes.nix: formatting clean up base16-colors.nix theme: fix plugin setup, change base16 flake input
This commit is contained in:
parent
c727528b6f
commit
e80dedd098
7 changed files with 126 additions and 6 deletions
|
|
@ -4,7 +4,15 @@
|
|||
}: let
|
||||
inherit (lib.strings) optionalString;
|
||||
inherit (lib.trivial) boolToString warnIf;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
cfg = config.vim.theme;
|
||||
in {
|
||||
base16 = {
|
||||
setup = {base16-colors, ...}: ''
|
||||
-- Base-16 theme
|
||||
require('base16-colorscheme').setup(${toLuaObject cfg.base16-colors})
|
||||
'';
|
||||
};
|
||||
onedark = {
|
||||
setup = {style ? "dark", ...}: ''
|
||||
-- OneDark theme
|
||||
|
|
@ -20,6 +28,7 @@ in {
|
|||
setup = {
|
||||
style ? "night",
|
||||
transparent,
|
||||
...
|
||||
}: ''
|
||||
require('tokyonight').setup {
|
||||
transparent = ${boolToString transparent};
|
||||
|
|
@ -42,6 +51,7 @@ in {
|
|||
setup = {
|
||||
style ? "mocha",
|
||||
transparent ? false,
|
||||
...
|
||||
}: ''
|
||||
-- Catppuccin theme
|
||||
require('catppuccin').setup {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue