feat: move plugins from initExtraBeforeCompInit to plugins

This commit is contained in:
Felix Schröter 2020-03-14 04:13:43 +01:00
parent cf138810e6
commit 85de8ec624
No known key found for this signature in database
GPG key ID: A12D7C9D2FD34458

View file

@ -24,11 +24,23 @@ in
enableAutosuggestions = true;
autocd = true;
defaultKeymap = "viins";
initExtraBeforeCompInit = with pkgs; ''
source ${zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ${zsh-history-substring-search}/share/zsh-history-substring-search/zsh-history-substring-search.zsh
source ${./first-tab-completion.zsh}
'';
plugins = with pkgs; [
{
name = "first-tab-completion";
src = lib.cleanSource ./.;
file = "first-tab-completion.zsh";
}
{
name = "zsh-syntax-highlighting";
src = zsh-syntax-highlighting;
file = "share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh";
}
{
name = "zsh-history-substring-search";
src = zsh-history-substring-search;
file = "share/zsh-history-substring-search/zsh-history-substring-search.zsh";
}
];
initExtra = ''
zmodload zsh/complist
zstyle ':completion:*' menu select