mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
lib/plugins: call sub-components with relevant args
This commit is contained in:
parent
690fc895b5
commit
787844cfe4
4 changed files with 21 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue