plugins/cmp: remove with lib;

This commit is contained in:
Austin Horstman 2024-10-06 09:57:31 -05:00
parent d71cfaaae8
commit 62b87e5b56
No known key found for this signature in database
13 changed files with 92 additions and 92 deletions

View file

@ -4,12 +4,11 @@
config,
...
}:
with lib;
let
cfg = config.plugins.cmp-ai;
in
{
meta.maintainers = [ maintainers.GaetanLepage ];
meta.maintainers = [ lib.maintainers.GaetanLepage ];
options.plugins.cmp-ai = {
settings = helpers.mkSettingsOption {
@ -31,7 +30,7 @@ in
available options.
'';
provider_options = helpers.defaultNullOpts.mkAttrsOf types.anything { } ''
provider_options = helpers.defaultNullOpts.mkAttrsOf lib.types.anything { } ''
Options to forward to the provider.
'';
@ -60,7 +59,7 @@ in
};
ignored_file_types = helpers.defaultNullOpts.mkAttrsOf' {
type = types.bool;
type = lib.types.bool;
description = "Which filetypes to ignore.";
pluginDefault = { };
example = {
@ -87,7 +86,7 @@ in
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
extraConfigLua = ''
require('cmp_ai.config'):setup(${helpers.toLuaObject cfg.settings})
'';