nixvim/plugins/lush-nvim: change initLush attribute name to extraConfigLua

It's more consistent and also the same name used for similar options.
This commit is contained in:
Gabriel Arazas 2024-02-08 19:31:42 +08:00
parent cd456823f3
commit 7fd046a6a6
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -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')