mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
tests: move away from string comparisons with stdenv.hostPlatform
This commit is contained in:
parent
d3c9dedbdd
commit
75efaa0a97
2 changed files with 22 additions and 14 deletions
|
@ -36,6 +36,8 @@ let
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
inherit (pkgs.stdenv) hostPlatform;
|
||||||
|
|
||||||
disabled =
|
disabled =
|
||||||
[
|
[
|
||||||
# DEPRECATED SERVERS
|
# DEPRECATED SERVERS
|
||||||
|
@ -44,7 +46,7 @@ let
|
||||||
"bufls"
|
"bufls"
|
||||||
"typst_lsp"
|
"typst_lsp"
|
||||||
]
|
]
|
||||||
++ lib.optionals (pkgs.stdenv.hostPlatform.system == "aarch64-linux") [
|
++ lib.optionals (hostPlatform.isLinux && hostPlatform.isAarch64) [
|
||||||
# pkgs.vectorcode is not available on this platform
|
# pkgs.vectorcode is not available on this platform
|
||||||
"vectorcode_server"
|
"vectorcode_server"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
all-sources =
|
all-sources =
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
|
@ -18,18 +18,24 @@
|
||||||
settings.sources =
|
settings.sources =
|
||||||
with pkgs.lib;
|
with pkgs.lib;
|
||||||
let
|
let
|
||||||
disabledSources = [
|
inherit (pkgs.stdenv) hostPlatform;
|
||||||
# We do not provide the required HF_API_KEY environment variable.
|
|
||||||
"cmp_ai"
|
disabledSources =
|
||||||
# Triggers the warning complaining about treesitter highlighting being disabled
|
[
|
||||||
"otter"
|
# We do not provide the required HF_API_KEY environment variable.
|
||||||
# Invokes the `nix` command at startup which is not available in the sandbox
|
"cmp_ai"
|
||||||
"nixpkgs_maintainers"
|
# Triggers the warning complaining about treesitter highlighting being disabled
|
||||||
# Needs internet access to download `sm-agent`
|
"otter"
|
||||||
"supermaven"
|
# Invokes the `nix` command at startup which is not available in the sandbox
|
||||||
# Sometimes get auth error
|
"nixpkgs_maintainers"
|
||||||
"codeium"
|
# Needs internet access to download `sm-agent`
|
||||||
] ++ optional (pkgs.stdenv.hostPlatform.system == "aarch64-linux") "cmp_tabnine";
|
"supermaven"
|
||||||
|
# Sometimes get auth error
|
||||||
|
"codeium"
|
||||||
|
]
|
||||||
|
++ lib.optionals (hostPlatform.isLinux && hostPlatform.isAarch64) [
|
||||||
|
"cmp_tabnine"
|
||||||
|
];
|
||||||
in
|
in
|
||||||
pipe config.cmpSourcePlugins [
|
pipe config.cmpSourcePlugins [
|
||||||
# All known source names
|
# All known source names
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue