lsp/null-ls: take a list instead of attrs for sources

This commit is contained in:
NotAShelf 2025-04-12 20:50:05 +03:00
parent 38eed2d69d
commit bb3ca63d21
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF

View file

@ -1,6 +1,6 @@
{lib, ...}: let
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) attrsOf str int nullOr;
inherit (lib.types) listOf str int nullOr;
inherit (lib.generators) mkLuaInline;
inherit (lib.nvim.types) luaInline mkPluginSetupOption;
inherit (lib.nvim.config) batchRenameOptions;
@ -70,7 +70,7 @@ in {
};
sources = mkOption {
type = nullOr (attrsOf luaInline);
type = nullOr (listOf luaInline);
default = null;
description = "Sources for null-ls to register";
};