mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 00:48:58 +02:00
17 lines
310 B
Nix
17 lines
310 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.plugins.cmp-tabnine;
|
|
in
|
|
{
|
|
options.plugins.cmp-tabnine = lib.nixvim.neovim-plugin.extraOptionsOptions;
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
extraConfigLua = ''
|
|
require('cmp_tabnine.config'):setup(${lib.nixvim.toLuaObject cfg.extraOptions})
|
|
'';
|
|
};
|
|
}
|