{neovim, vim}: add testbeds (#1571)

Link: https://github.com/nix-community/stylix/pull/1571

Reviewed-by: "Shahar \"Dawn\" Or" <mightyiampresence@gmail.com>
Reviewed-by: awwpotato <awwpotato@voidq.com>
This commit is contained in:
Flameopathic 2025-07-05 22:32:43 -04:00 committed by GitHub
parent 1bd6d031ac
commit 50ed5ddd10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{ lib, pkgs, ... }:
{
stylix.testbed.ui.command = {
text = "nvim example.md";
useTerminal = true;
};
home-manager.sharedModules = lib.singleton {
programs.neovim.enable = true;
home.file."example.md" = {
source = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/sharkdp/bat/e2aa4bc33cca785cab8bdadffc58a4a30b245854/tests/syntax-tests/source/Markdown/example.md";
hash = "sha256-VYYwgRFY1c2DPY7yGM8oF3zG4rtEpBWyqfPwmGZIkcA=";
};
};
};
}

View file

@ -0,0 +1,17 @@
{ lib, pkgs, ... }:
{
stylix.testbed.ui.command = {
text = "${lib.getExe pkgs.vim} example.md";
useTerminal = true;
};
home-manager.sharedModules = lib.singleton {
programs.vim.enable = true;
home.file."example.md" = {
source = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/sharkdp/bat/e2aa4bc33cca785cab8bdadffc58a4a30b245854/tests/syntax-tests/source/Markdown/example.md";
hash = "sha256-VYYwgRFY1c2DPY7yGM8oF3zG4rtEpBWyqfPwmGZIkcA=";
};
};
};
}