mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
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:
parent
cd456823f3
commit
7fd046a6a6
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user