mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
28 lines
641 B
Nix
28 lines
641 B
Nix
|
{ pkgs, cmp-sources, ... }:
|
||
|
{
|
||
|
all-sources = {
|
||
|
plugins = {
|
||
|
copilot-lua = {
|
||
|
enable = true;
|
||
|
|
||
|
panel.enabled = false;
|
||
|
suggestion.enabled = false;
|
||
|
};
|
||
|
|
||
|
cmp = {
|
||
|
enable = true;
|
||
|
settings.sources =
|
||
|
with pkgs.lib;
|
||
|
let
|
||
|
disabledSources = optional (pkgs.stdenv.hostPlatform.system == "aarch64-linux") "cmp_tabnine";
|
||
|
|
||
|
filterFunc = sourceName: !(elem sourceName disabledSources);
|
||
|
|
||
|
sourceNames = filter filterFunc (attrNames cmp-sources);
|
||
|
in
|
||
|
map (sourceName: { name = sourceName; }) sourceNames;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|