-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zsh: finally got rid of the annoying message
- Loading branch information
1 parent
16cf627
commit 0fb9437
Showing
2 changed files
with
10 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,13 @@ | ||
{ | ||
lib, | ||
pkgs, | ||
... | ||
}: { | ||
# Zsh plugins | ||
programs.zsh.plugins = [ | ||
{ | ||
name = "zsh-autocomplete"; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "marlonrichert"; | ||
repo = "zsh-autocomplete"; | ||
rev = "196810035992abea65e54852c4278af2069ee482"; # latest commit | ||
hash = "sha256-bzOTeYWrzuYNbeat30zijKJ9kflRhdE/0wD2HwZWXbU="; | ||
}; | ||
} | ||
{ | ||
name = "fast-syntax-highlighting"; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "zdharma-continuum"; | ||
repo = "fast-syntax-highlighting"; | ||
rev = "cf318e06a9b7c9f2219d78f41b46fa6e06011fd9"; # latest commit | ||
hash = "sha256-RVX9ZSzjBW3LpFs2W86lKI6vtcvDWP6EPxzeTcRZua4="; | ||
}; | ||
} | ||
{lib, ...}: { | ||
# Zsh plugins' | ||
programs.zsh.autosuggestion.enable = true; # enable autosuggestion plugin | ||
programs.zsh.antidote.enable = true; # Plugin manager | ||
programs.zsh.antidote.plugins = [ | ||
# Note the order, it's important: https://github.com/zsh-users/zsh-syntax-highlighting/issues/951 | ||
"zdharma-continuum/fast-syntax-highlighting" | ||
"marlonrichert/zsh-autocomplete" | ||
]; | ||
programs.zsh.enableCompletion = lib.mkForce false; # disable for zsh autocomplete plugin | ||
|
||
# programs.zsh.historySubstringSearch.enable = true; # not compatible with zsh-autocomplete | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters