mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
19 lines
360 B
Nix
19 lines
360 B
Nix
|
{
|
||
|
pkgs,
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
with lib; let
|
||
|
cfg = config.plugins.cmp-tabnine;
|
||
|
helpers = import ../../../helpers.nix {inherit lib;};
|
||
|
in {
|
||
|
options.plugins.cmp-tabnine = helpers.extraOptionsOptions;
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
extraConfigLua = ''
|
||
|
require('cmp_tabnine.config'):setup(${helpers.toLuaObject cfg.extraOptions})
|
||
|
'';
|
||
|
};
|
||
|
}
|