nix-community.nixvim/plugins/completion/nvim-cmp/sources/cmp-tabnine.nix

19 lines
360 B
Nix
Raw Normal View History

{
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})
'';
};
}