mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 01:04:34 +02:00
treewide: Reformat with nixfmt
This commit is contained in:
parent
c6281260dc
commit
62f32bfc71
459 changed files with 28139 additions and 26377 deletions
|
@ -1,8 +1,5 @@
|
|||
{ pkgs, cmp-sources, ... }:
|
||||
{
|
||||
pkgs,
|
||||
cmp-sources,
|
||||
...
|
||||
}: {
|
||||
all-sources = {
|
||||
plugins = {
|
||||
copilot-lua = {
|
||||
|
@ -14,24 +11,16 @@
|
|||
|
||||
cmp = {
|
||||
enable = true;
|
||||
settings.sources = with pkgs.lib; let
|
||||
disabledSources =
|
||||
optional
|
||||
(pkgs.stdenv.hostPlatform.system == "aarch64-linux")
|
||||
"cmp_tabnine";
|
||||
settings.sources =
|
||||
with pkgs.lib;
|
||||
let
|
||||
disabledSources = optional (pkgs.stdenv.hostPlatform.system == "aarch64-linux") "cmp_tabnine";
|
||||
|
||||
filterFunc = sourceName: !(elem sourceName disabledSources);
|
||||
filterFunc = sourceName: !(elem sourceName disabledSources);
|
||||
|
||||
sourceNames =
|
||||
filter
|
||||
filterFunc
|
||||
(attrNames cmp-sources);
|
||||
in
|
||||
map
|
||||
(
|
||||
sourceName: {name = sourceName;}
|
||||
)
|
||||
sourceNames;
|
||||
sourceNames = filter filterFunc (attrNames cmp-sources);
|
||||
in
|
||||
map (sourceName: { name = sourceName; }) sourceNames;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue