Fix zsh autocomplete
This commit is contained in:
parent
d99b53b2f2
commit
75307ad324
2 changed files with 9 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
|
environment.pathsToLink = [ "/share/zsh" ];
|
||||||
home-manager.users.froidmpa = { pkgs, config, ... }: {
|
home-manager.users.froidmpa = { pkgs, config, ... }: {
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@
|
||||||
save = 50000;
|
save = 50000;
|
||||||
size = 50000;
|
size = 50000;
|
||||||
};
|
};
|
||||||
|
enableCompletion = true;
|
||||||
enableAutosuggestions = true;
|
enableAutosuggestions = true;
|
||||||
|
enableSyntaxHighlighting = true;
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
|
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
|
||||||
zle -N up-line-or-beginning-search
|
zle -N up-line-or-beginning-search
|
||||||
|
|
@ -25,9 +27,12 @@
|
||||||
};
|
};
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
name = "zsh-syntax-highlighting";
|
name = "nix-zsh-completions";
|
||||||
file = "share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh";
|
src = pkgs.nix-zsh-completions;
|
||||||
src = "${pkgs.zsh-syntax-highlighting}";
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-completions";
|
||||||
|
src = pkgs.zsh-completions;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue