feat: move plugins from initExtraBeforeCompInit to plugins
This commit is contained in:
parent
cf138810e6
commit
85de8ec624
|
@ -24,11 +24,23 @@ in
|
||||||
enableAutosuggestions = true;
|
enableAutosuggestions = true;
|
||||||
autocd = true;
|
autocd = true;
|
||||||
defaultKeymap = "viins";
|
defaultKeymap = "viins";
|
||||||
initExtraBeforeCompInit = with pkgs; ''
|
plugins = 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
|
name = "first-tab-completion";
|
||||||
source ${./first-tab-completion.zsh}
|
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 = ''
|
initExtra = ''
|
||||||
zmodload zsh/complist
|
zmodload zsh/complist
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
|
Loading…
Reference in a new issue