plugins/cmp-tabnine: move to by-name

This commit is contained in:
Gaetan Lepage 2024-12-18 22:48:06 +01:00 committed by nix-infra-bot
parent 79a637d196
commit 7aed1c4b57
4 changed files with 116 additions and 22 deletions

View file

@ -1,17 +0,0 @@
{
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})
'';
};
}

View file

@ -141,10 +141,6 @@ let
pluginName = "cmp-spell";
sourceName = "spell";
}
{
pluginName = "cmp-tabnine";
sourceName = "cmp_tabnine";
}
{
pluginName = "cmp-tmux";
sourceName = "tmux";
@ -194,7 +190,6 @@ in
# For extra cmp plugins
imports = [
./copilot-cmp.nix
./cmp-tabnine.nix
./crates-nvim.nix
] ++ pluginModules;
}