mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-31 15:30:27 +02:00
modules: cleanup with lib
This commit is contained in:
parent
ff042dfc93
commit
1c9ba58aef
12 changed files with 79 additions and 85 deletions
|
@ -1,15 +1,14 @@
|
|||
{ config, lib, ... }:
|
||||
with lib;
|
||||
{
|
||||
options = {
|
||||
colorscheme = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
colorscheme = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
description = "The name of the colorscheme to use";
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf (config.colorscheme != "" && config.colorscheme != null) {
|
||||
config = lib.mkIf (config.colorscheme != "" && config.colorscheme != null) {
|
||||
extraConfigVim = ''
|
||||
colorscheme ${config.colorscheme}
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue