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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
315 B
Nix
Raw Normal View History

{
lib,
helpers,
config,
...
}:
let
cfg = config.plugins.cmp-tabnine;
in
{
options.plugins.cmp-tabnine = helpers.neovim-plugin.extraOptionsOptions;
2024-10-06 09:57:31 -05:00
config = lib.mkIf cfg.enable {
extraConfigLua = ''
require('cmp_tabnine.config'):setup(${helpers.toLuaObject cfg.extraOptions})
'';
};
}