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,14 +4,14 @@
config,
...
}:
with lib;
let
inherit (lib) types;
cfg = config.plugins.cmp-git;
mkAction =
action: target:
helpers.defaultNullOpts.mkLuaFn "require('cmp_git.${action}').git.${target}" ''
Function used to ${action} the ${replaceStrings [ "_" ] [ " " ] target}.
Function used to ${action} the ${lib.replaceStrings [ "_" ] [ " " ] target}.
'';
in
{
@ -151,7 +151,7 @@ in
options = {
debug_name = helpers.mkNullOrStr "Debug name.";
trigger_character = mkOption {
trigger_character = lib.mkOption {
type = types.str;
example = ":";
description = ''
@ -160,7 +160,7 @@ in
'';
};
action = mkOption {
action = lib.mkOption {
type = lib.types.strLuaFn;
description = ''
The parameters to the action function are the different sources (currently `git`,
@ -289,7 +289,7 @@ in
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
extraConfigLua = ''
require('cmp_git').setup(${helpers.toLuaObject cfg.settings})
'';