Added nix-ld and discord rich presence for zed
All checks were successful
Check config / build (push) Successful in 58s
All checks were successful
Check config / build (push) Successful in 58s
This commit is contained in:
parent
4a2f280fb2
commit
a8020955a2
@ -2,6 +2,10 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.nixConfig = { config, pkgs, inputs, ...}: {
|
flake.nixosModules.nixConfig = { config, pkgs, inputs, ...}: {
|
||||||
programs = {
|
programs = {
|
||||||
|
nix-ld = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
direnv = {
|
direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
silent = true;
|
silent = true;
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
# Themes
|
# Themes
|
||||||
"rosé pine"
|
"rosé pine"
|
||||||
"catppuccin blur"
|
"catppuccin blur"
|
||||||
|
|
||||||
|
# Discord
|
||||||
|
"zed-discord-presence"
|
||||||
];
|
];
|
||||||
|
|
||||||
extraPackages = [ pkgs.nixd ];
|
extraPackages = [ pkgs.nixd ];
|
||||||
@ -34,6 +37,40 @@
|
|||||||
};
|
};
|
||||||
hour_format = "hour24";
|
hour_format = "hour24";
|
||||||
tab_size = 2;
|
tab_size = 2;
|
||||||
|
|
||||||
|
lsp = {
|
||||||
|
discord_presence = {
|
||||||
|
initialization_options = {
|
||||||
|
application_id = "1263505205522337886";
|
||||||
|
base_icons_url = "https://raw.githubusercontent.com/xhyrom/zed-discord-presence/main/assets/icons/";
|
||||||
|
|
||||||
|
state = "Working on {filename}";
|
||||||
|
details = "In {workspace}";
|
||||||
|
|
||||||
|
large_image = "{base_icons_url}/{language:lo}.png";
|
||||||
|
large_text = "{language:u}";
|
||||||
|
|
||||||
|
small_image = "{base_icons_url}/zed.png";
|
||||||
|
small_text = "Zed";
|
||||||
|
|
||||||
|
idle = {
|
||||||
|
timeout = 300; # 5 mins
|
||||||
|
action = "change_activity";
|
||||||
|
|
||||||
|
state = "Thinking...";
|
||||||
|
details = "In Zed";
|
||||||
|
|
||||||
|
large_image = "{base_icons_url}/zed.png";
|
||||||
|
large_text = "Zed";
|
||||||
|
|
||||||
|
small_image = "{base_icons_url}/idle.png";
|
||||||
|
small_text = "Idle";
|
||||||
|
};
|
||||||
|
|
||||||
|
git_integration = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user