mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-16 07:28:00 +02:00
nord: package option
This commit is contained in:
parent
dd649f1405
commit
2f634aa3ce
1 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,12 @@ in
|
||||||
colorschemes.nord = {
|
colorschemes.nord = {
|
||||||
enable = mkEnableOption "Enable nord";
|
enable = mkEnableOption "Enable nord";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.vimPlugins.nord-nvim;
|
||||||
|
description = "Plugin to use for nord.nvim";
|
||||||
|
};
|
||||||
|
|
||||||
contrast = mkEnableOption
|
contrast = mkEnableOption
|
||||||
"Make sidebars and popup menus like nvim-tree and telescope have a different background";
|
"Make sidebars and popup menus like nvim-tree and telescope have a different background";
|
||||||
|
|
||||||
|
@ -33,7 +39,7 @@ in
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
colorscheme = "nord";
|
colorscheme = "nord";
|
||||||
extraPlugins = [ pkgs.vimPlugins.nord-nvim ];
|
extraPlugins = [ cfg.package ];
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
nord_contrast = mkIf cfg.contrast 1;
|
nord_contrast = mkIf cfg.contrast 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue