user/zsh: switch to new initcontent
This commit is contained in:
parent
dfdb1afe39
commit
f957be17d0
1 changed files with 20 additions and 18 deletions
|
|
@ -117,14 +117,6 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
initExtraBeforeCompInit = ''
|
|
||||||
fpath+=(/run/current-system/sw/share/zsh/site-functions)
|
|
||||||
zstyle ':completion:*' completer _complete
|
|
||||||
zstyle ':completion:*' matcher-list "" 'm:{[:lower:][:upper:]-_}={[:upper:][:lower:]_-}' '+l:|=* r:|=*'
|
|
||||||
zstyle ':completion:*' menu select
|
|
||||||
_comp_options+=(globdots)
|
|
||||||
zmodload zsh/complist
|
|
||||||
'';
|
|
||||||
|
|
||||||
localVariables = {
|
localVariables = {
|
||||||
KEYTIMEOUT = "1";
|
KEYTIMEOUT = "1";
|
||||||
|
|
@ -138,16 +130,26 @@ in {
|
||||||
ls = "ls --color=auto --group-directories-first -v";
|
ls = "ls --color=auto --group-directories-first -v";
|
||||||
diff = "diff -Naur --color=auto";
|
diff = "diff -Naur --color=auto";
|
||||||
};
|
};
|
||||||
initExtraFirst = ''
|
initContent = lib.mkMerge [
|
||||||
|
(lib.mkBefore ''
|
||||||
autoload -U colors && colors
|
autoload -U colors && colors
|
||||||
'';
|
'')
|
||||||
initExtra = lib.concatStringsSep "\n" [
|
(lib.mkOrder 550 ''
|
||||||
|
fpath+=(/run/current-system/sw/share/zsh/site-functions)
|
||||||
|
zstyle ':completion:*' completer _complete
|
||||||
|
zstyle ':completion:*' matcher-list "" 'm:{[:lower:][:upper:]-_}={[:upper:][:lower:]_-}' '+l:|=* r:|=*'
|
||||||
|
zstyle ':completion:*' menu select
|
||||||
|
_comp_options+=(globdots)
|
||||||
|
zmodload zsh/complist
|
||||||
|
'')
|
||||||
|
(lib.concatStringsSep "\n" [
|
||||||
pure
|
pure
|
||||||
cursorShape
|
cursorShape
|
||||||
direnv
|
direnv
|
||||||
genAbbrs
|
genAbbrs
|
||||||
viExtraNav
|
viExtraNav
|
||||||
disableExecute
|
disableExecute
|
||||||
|
])
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = builtins.map (e: pluginFromInput e) [
|
plugins = builtins.map (e: pluginFromInput e) [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue