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.

18 lines
310 B
Nix
Raw Normal View History

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