mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
onedark: init colorscheme
This commit is contained in:
parent
3b02d7ff06
commit
3ddf463771
3 changed files with 21 additions and 1 deletions
|
@ -35,7 +35,7 @@
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.neovim-nightly;
|
package = pkgs.neovim-nightly;
|
||||||
colorschemes.gruvbox = {
|
colorschemes.onedark = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
19
plugins/colorschemes/onedark.nix
Normal file
19
plugins/colorschemes/onedark.nix
Normal file
|
@ -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 ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./colorschemes/gruvbox.nix
|
./colorschemes/gruvbox.nix
|
||||||
|
./colorschemes/onedark.nix
|
||||||
./colorschemes/base16.nix
|
./colorschemes/base16.nix
|
||||||
|
|
||||||
./statuslines/lightline.nix
|
./statuslines/lightline.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue