lib/plugins: call sub-components with relevant args

This commit is contained in:
Matt Sturgeon 2024-12-18 23:15:09 +00:00
parent 690fc895b5
commit 787844cfe4
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
4 changed files with 21 additions and 23 deletions

View file

@ -1,9 +1,7 @@
{ lib }:
let
inherit (lib.nixvim.plugins.vim)
mkSettingsOption
;
in
{
lib,
self,
}:
{
name,
url ? throw "default",
@ -43,7 +41,7 @@ let
createSettingsOption = lib.isString globalPrefix && globalPrefix != "";
settingsOption = lib.optionalAttrs createSettingsOption {
settings = mkSettingsOption {
settings = self.vim.mkSettingsOption {
options = settingsOptions;
example = settingsExample;
inherit name globalPrefix;