diff --git a/flake.nix b/flake.nix index 2b9401c9..bfb8742d 100644 --- a/flake.nix +++ b/flake.nix @@ -35,7 +35,7 @@ programs.nixvim = { enable = true; package = pkgs.neovim-nightly; - colorschemes.gruvbox = { + colorschemes.onedark = { enable = true; }; diff --git a/plugins/colorschemes/onedark.nix b/plugins/colorschemes/onedark.nix new file mode 100644 index 00000000..bbc16f2a --- /dev/null +++ b/plugins/colorschemes/onedark.nix @@ -0,0 +1,19 @@ +{ pkgs, config, lib, ... }: +with lib; +let + cfg = config.programs.nixvim.colorschemes.onedark; + colors = types.enum [ "bg" "red" "green" "yellow" "blue" "purple" "aqua" "gray" "fg" "bg0_h" "bg0" "bg1" "bg2" "bg3" "bg4" "gray" "orange" "bg0_s" "fg0" "fg1" "fg2" "fg3" "fg4" ]; +in { + options = { + programs.nixvim.colorschemes.onedark = { + enable = mkEnableOption "Enable onedark"; + }; + }; + + config = mkIf cfg.enable { + programs.nixvim = { + colorscheme = "onedark"; + extraPlugins = [ pkgs.vimPlugins.onedark-vim ]; + }; + }; +} diff --git a/plugins/default.nix b/plugins/default.nix index 5a9141ca..7784b832 100644 --- a/plugins/default.nix +++ b/plugins/default.nix @@ -1,6 +1,7 @@ { imports = [ ./colorschemes/gruvbox.nix + ./colorschemes/onedark.nix ./colorschemes/base16.nix ./statuslines/lightline.nix