mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-26 07:22:51 +00:00
confusion
This commit is contained in:
parent
e51dce002e
commit
a37625c3b0
12 changed files with 319 additions and 32 deletions
25
modules/plugins/theme/supported-themes/onedark.nix
Normal file
25
modules/plugins/theme/supported-themes/onedark.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkOption;
|
||||
inherit (lib.types) str;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
cfg = config.vim.theme;
|
||||
in {
|
||||
onedark = {
|
||||
setupOpts = mkPluginSetupOption "onedark" {
|
||||
style = mkOption {
|
||||
type = str;
|
||||
default = cfg.style;
|
||||
internal = true;
|
||||
};
|
||||
};
|
||||
setup = ''
|
||||
-- OneDark theme
|
||||
require('onedark').load()
|
||||
'';
|
||||
styles = ["dark" "darker" "cool" "deep" "warm" "warmer"];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue