flake/users/guanranwang/home-manager/applications/fish/default.nix

55 lines
1.3 KiB
Nix

{
pkgs,
config,
lib,
...
}: {
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting
${lib.strings.optionalString (config.myFlake.home-manager.colorScheme == "tokyonight")
"source ${pkgs.vimPlugins.tokyonight-nvim}/extras/fish/tokyonight_night.fish"}
'';
plugins = [
{
name = "autopair";
inherit (pkgs.fishPlugins.autopair) src;
}
{
name = "done";
inherit (pkgs.fishPlugins.done) src;
}
#{
# name = "tide";
# src = pkgs.fishPlugins.tide.src;
#}
{
name = "sponge";
inherit (pkgs.fishPlugins.sponge) src;
}
{
name = "puffer";
inherit (pkgs.fishPlugins.puffer) src;
}
{
name = "sudope";
src = pkgs.fetchFromGitHub {
owner = "oh-my-fish";
repo = "plugin-sudope";
rev = "83919a692bc1194aa322f3627c859fecace5f496";
hash = "sha256-pD4rNuqg6TG22L9m8425CO2iqcYm8JaAEXIVa0H/v/U=";
};
}
{
name = "fish-abbreviation-tips";
src = pkgs.fetchFromGitHub {
owner = "gazorby";
repo = "fish-abbreviation-tips";
rev = "8ed76a62bb044ba4ad8e3e6832640178880df485";
hash = "sha256-F1t81VliD+v6WEWqj1c1ehFBXzqLyumx5vV46s/FZRU=";
};
}
];
};
}