nixdots/home/programs/terminal/shell/zsh/plugins.nix

35 lines
826 B
Nix
Raw Normal View History

2024-03-23 23:44:57 +00:00
{
2024-07-26 23:07:07 +00:00
config,
pkgs,
...
}: let
inherit (pkgs) fetchFromGitHub;
in {
2024-03-24 12:18:51 +00:00
programs.zsh.plugins = [
{
name = "zsh-nix-shell";
src = pkgs.zsh-nix-shell;
file = "share/zsh-nix-shell/nix-shell.plugin.zsh";
}
{
name = "fast-syntax-highlighting";
src = "${pkgs.zsh-fast-syntax-highlighting}/share/zsh/site-functions";
}
{
name = "zsh-autosuggestions";
src = pkgs.zsh-autosuggestions;
file = "share/zsh-autosuggestions/zsh-autosuggestions.zsh";
}
{
name = "zsh-autopair";
file = "zsh-autopair.plugin.zsh";
src = fetchFromGitHub {
owner = "hlissner";
repo = "zsh-autopair";
rev = "2ec3fd3c9b950c01dbffbb2a4d191e1d34b8c58a";
hash = "sha256-Y7fkpvCOC/lC2CHYui+6vOdNO8dNHGrVYTGGNf9qgdg=";
};
}
];
2024-03-23 23:44:57 +00:00
}