tests: remove special treatment of module

Since we no longer need to extract `tests.dontRun` from an attrset, we
no longer need the "special" `module` attr.
This commit is contained in:
Matt Sturgeon 2024-08-20 00:54:50 +01:00
parent 7b2a6cd9e6
commit 123a55ed6f
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
14 changed files with 266 additions and 285 deletions

View file

@ -1,41 +1,39 @@
{ pkgs, ... }:
{
all-sources = {
module =
{ config, ... }:
{
plugins = {
copilot-lua = {
enable = true;
all-sources =
{ config, ... }:
{
plugins = {
copilot-lua = {
enable = true;
panel.enabled = false;
suggestion.enabled = false;
};
panel.enabled = false;
suggestion.enabled = false;
};
cmp = {
enable = true;
settings.sources =
with pkgs.lib;
let
disabledSources = [
# We do not provide the required HF_API_KEY environment variable.
"cmp_ai"
# Triggers the warning complaining about treesitter highlighting being disabled
"otter"
] ++ optional (pkgs.stdenv.hostPlatform.system == "aarch64-linux") "cmp_tabnine";
in
pipe config.cmpSourcePlugins [
# All known source names
attrNames
# Filter out disabled sources
(filter (name: !(elem name disabledSources)))
# Convert names to source attributes
(map (name: {
inherit name;
}))
];
};
cmp = {
enable = true;
settings.sources =
with pkgs.lib;
let
disabledSources = [
# We do not provide the required HF_API_KEY environment variable.
"cmp_ai"
# Triggers the warning complaining about treesitter highlighting being disabled
"otter"
] ++ optional (pkgs.stdenv.hostPlatform.system == "aarch64-linux") "cmp_tabnine";
in
pipe config.cmpSourcePlugins [
# All known source names
attrNames
# Filter out disabled sources
(filter (name: !(elem name disabledSources)))
# Convert names to source attributes
(map (name: {
inherit name;
}))
];
};
};
};
};
}

View file

@ -3,23 +3,21 @@
plugins.coq-nvim.enable = true;
};
nixvim-defaults = {
module =
{ pkgs, ... }:
{
plugins.coq-nvim = {
# It seems that the plugin has issues being executed in the same derivation
enable = !(pkgs.stdenv.isDarwin && pkgs.stdenv.isx86_64);
nixvim-defaults =
{ pkgs, ... }:
{
plugins.coq-nvim = {
# It seems that the plugin has issues being executed in the same derivation
enable = !(pkgs.stdenv.isDarwin && pkgs.stdenv.isx86_64);
settings = {
xdg = true;
auto_start = true;
keymap.recommended = true;
completion.always = true;
};
settings = {
xdg = true;
auto_start = true;
keymap.recommended = true;
completion.always = true;
};
};
};
};
artifacts = {
plugins.coq-nvim = {