plugins/nvim-cmp: refactoring (init filetype and cmdline options)

This commit is contained in:
Gaetan Lepage 2024-02-03 23:22:06 +01:00 committed by Gaétan Lepage
parent 22b587f3dc
commit a61c8fbc3d
26 changed files with 1166 additions and 948 deletions

View file

@ -0,0 +1,29 @@
{
lib,
config,
helpers,
pkgs,
...
}:
with lib; let
cmpLib = import ../cmp-helpers.nix {inherit lib config helpers pkgs;};
cmpSourcesPluginNames = attrValues cmpLib.pluginAndSourceNames;
pluginModules =
map
(
name:
cmpLib.mkCmpSourcePlugin {inherit name;}
)
cmpSourcesPluginNames;
in {
# For extra cmp plugins
imports =
[
./codeium-nvim.nix
./copilot-cmp.nix
./cmp-tabby.nix
./cmp-tabnine.nix
./crates-nvim.nix
]
++ pluginModules;
}