mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 03:20:08 +02:00
plugins/cmp: remove with lib;
This commit is contained in:
parent
d71cfaaae8
commit
62b87e5b56
13 changed files with 92 additions and 92 deletions
|
@ -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})
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue