mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 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, ... }: {
|
schemeType = { config, lib, ... }: {
|
||||||
options = {
|
options = {
|
||||||
lushInit = lib.mkOption {
|
extraConfigLua = lib.mkOption {
|
||||||
type = lib.types.lines;
|
type = lib.types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
description = ''
|
description = ''
|
||||||
@ -37,8 +37,8 @@ let
|
|||||||
# This is based from rktjmp/lush-template. We'll improve on things from
|
# This is based from rktjmp/lush-template. We'll improve on things from
|
||||||
# here whenever necessary.
|
# here whenever necessary.
|
||||||
lib.nameValuePair "colors/${name}.lua" ''
|
lib.nameValuePair "colors/${name}.lua" ''
|
||||||
${cfg.lushInit}
|
${cfg.extraConfigLua}
|
||||||
${theme.lushInit}
|
${theme.extraConfigLua}
|
||||||
|
|
||||||
local theme = lush(
|
local theme = lush(
|
||||||
function(injected_functions)
|
function(injected_functions)
|
||||||
@ -56,7 +56,7 @@ in
|
|||||||
|
|
||||||
package = helpers.mkPackageOption "lush.nvim" pkgs.vimPlugins.lush-nvim;
|
package = helpers.mkPackageOption "lush.nvim" pkgs.vimPlugins.lush-nvim;
|
||||||
|
|
||||||
lushInit = lib.mkOption {
|
extraConfigLua = lib.mkOption {
|
||||||
type = lib.types.lines;
|
type = lib.types.lines;
|
||||||
default = ''
|
default = ''
|
||||||
local lush = require('lush')
|
local lush = require('lush')
|
||||||
|
Loading…
Reference in New Issue
Block a user