mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-08 11:55:17 +02:00
plugins/cmp: refactor source->plugin association
Introduce the internal option `cmpSourcePlugins` where plugins can register their nvim-cmp source name association.
This commit is contained in:
parent
bd422db9ba
commit
3a8d4fee35
6 changed files with 137 additions and 100 deletions
|
@ -15,8 +15,11 @@ let
|
|||
pkgs
|
||||
;
|
||||
};
|
||||
cmpSourcesPluginNames = attrValues (import ../sources.nix);
|
||||
pluginModules = map (name: cmpLib.mkCmpSourcePlugin { inherit name; }) cmpSourcesPluginNames;
|
||||
|
||||
cmpSourcesPluginNames = import ../sources.nix;
|
||||
pluginModules = mapAttrsToList (
|
||||
sourceName: name: cmpLib.mkCmpSourcePlugin { inherit sourceName name; }
|
||||
) cmpSourcesPluginNames;
|
||||
in
|
||||
{
|
||||
# For extra cmp plugins
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue