forked from pub-solar/os
zsh: bundle plugins within our config
This commit is contained in:
parent
6ff469a0ac
commit
40240e9d5c
|
@ -5,6 +5,16 @@ let
|
||||||
|
|
||||||
preview-file = pkgs.writeShellScriptBin "preview-file" (import ./preview-file.nix pkgs);
|
preview-file = pkgs.writeShellScriptBin "preview-file" (import ./preview-file.nix pkgs);
|
||||||
|
|
||||||
|
vimagit-next = pkgs.vimUtils.buildVimPlugin {
|
||||||
|
name = "vimagit-next";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "jreybert";
|
||||||
|
repo = "vimagit";
|
||||||
|
rev = "34eaa17ba3f5330fbcf685e48530fb572b11de32";
|
||||||
|
sha256 = "sha256-7ZvZx6ye5talX3t4dVGGyZihU6RY20HqVksuU+hC4jI=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
instant-nvim = pkgs.vimUtils.buildVimPlugin {
|
instant-nvim = pkgs.vimUtils.buildVimPlugin {
|
||||||
name = "instant";
|
name = "instant";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
|
@ -108,7 +118,7 @@ in
|
||||||
fugitive
|
fugitive
|
||||||
vim-gitgutter
|
vim-gitgutter
|
||||||
vim-rhubarb
|
vim-rhubarb
|
||||||
vimagit
|
vimagit-next
|
||||||
|
|
||||||
fzf-vim
|
fzf-vim
|
||||||
fzfWrapper
|
fzfWrapper
|
||||||
|
|
|
@ -39,21 +39,47 @@ in
|
||||||
nixos-option = "nixos-option -I nixpkgs=${self}/lib/compat";
|
nixos-option = "nixos-option -I nixpkgs=${self}/lib/compat";
|
||||||
myip = "dig +short myip.opendns.com @208.67.222.222 2>&1";
|
myip = "dig +short myip.opendns.com @208.67.222.222 2>&1";
|
||||||
};
|
};
|
||||||
zplug = {
|
|
||||||
enable = true;
|
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
name = "plugins/z";
|
# will source ohmyzsh/plugins/z/
|
||||||
tags = [ "from:oh-my-zsh" ];
|
name = "zsh-plugins-z";
|
||||||
|
file = "plugins/z/z.sh";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "ohmyzsh";
|
||||||
|
repo = "ohmyzsh";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-NAVotL5RxpS/zKnO+ngMIjv787lqc1dj/c4blQrQcvU=";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "romkatv/powerlevel10k";
|
name = "zsh-powerlevel10k";
|
||||||
tags = [ "as:theme" "depth:1" ];
|
file = "powerlevel10k.zsh-theme";
|
||||||
}
|
src = pkgs.fetchFromGitHub {
|
||||||
{ name = "zdharma/fast-syntax-highlighting"; }
|
owner = "romkatv";
|
||||||
{ name = "chisui/zsh-nix-shell"; }
|
repo = "powerlevel10k";
|
||||||
];
|
rev = "master";
|
||||||
|
sha256 = "sha256-0pzkKPdzyQXTe8usaSaM1Iivi2UHQrSJrh5V2pRdiGg=";
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-fast-syntax-highlighting";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "zdharma";
|
||||||
|
repo = "fast-syntax-highlighting";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-uoLrXfq31GvfHO6GTrg7Hus8da2B4SCM1Frc+mRFbFc=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-nix-shell";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "chisui";
|
||||||
|
repo = "zsh-nix-shell";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-BjgMhILEL/qdgfno4LR64LSB8n9pC9R+gG7IQWwgyfQ=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
|
Loading…
Reference in a new issue