mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-22 11:45:28 +02:00
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:
parent
7b2a6cd9e6
commit
123a55ed6f
14 changed files with 266 additions and 285 deletions
|
@ -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;
|
||||
}))
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue