zed: add testbed (#1575)

Reviewed-by: awwpotato <awwpotato@voidq.com>
This commit is contained in:
Flameopathic 2025-07-03 14:40:47 -04:00 committed by GitHub
parent 6fe3f44852
commit 7da2bbd49e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,16 @@
{ lib, pkgs, ... }:
{
stylix.testbed.ui.command = {
text = "${lib.getExe pkgs.zed-editor} example.md";
};
home-manager.sharedModules = lib.singleton {
programs.zed-editor.enable = true;
home.file."example.md" = {
source = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/sharkdp/bat/e2aa4bc33cca785cab8bdadffc58a4a30b245854/tests/syntax-tests/source/Rust/output.rs";
hash = "sha256-vpUndD6H1oJfYVDai4LpVpsW6SSGbK466t3IKENZ1ow=";
};
};
};
}