From 7fd046a6a630167fdcb99fae583e71fdb255f6f5 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 8 Feb 2024 19:31:42 +0800 Subject: [PATCH] nixvim/plugins/lush-nvim: change `initLush` attribute name to `extraConfigLua` It's more consistent and also the same name used for similar options. --- modules/nixvim/plugins/lush-nvim.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/nixvim/plugins/lush-nvim.nix b/modules/nixvim/plugins/lush-nvim.nix index cedea3c4..e2b18d6e 100644 --- a/modules/nixvim/plugins/lush-nvim.nix +++ b/modules/nixvim/plugins/lush-nvim.nix @@ -5,7 +5,7 @@ let schemeType = { config, lib, ... }: { options = { - lushInit = lib.mkOption { + extraConfigLua = lib.mkOption { type = lib.types.lines; default = ""; description = '' @@ -37,8 +37,8 @@ let # This is based from rktjmp/lush-template. We'll improve on things from # here whenever necessary. lib.nameValuePair "colors/${name}.lua" '' - ${cfg.lushInit} - ${theme.lushInit} + ${cfg.extraConfigLua} + ${theme.extraConfigLua} local theme = lush( function(injected_functions) @@ -56,7 +56,7 @@ in package = helpers.mkPackageOption "lush.nvim" pkgs.vimPlugins.lush-nvim; - lushInit = lib.mkOption { + extraConfigLua = lib.mkOption { type = lib.types.lines; default = '' local lush = require('lush')