Skip to content

Commit

Permalink
zsh: finally got rid of the annoying message
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRTitor committed May 28, 2024
1 parent 16cf627 commit 0fb9437
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 27 deletions.
35 changes: 10 additions & 25 deletions home-manager/shell/zsh-plugins.nix
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
}
2 changes: 0 additions & 2 deletions home-manager/shell/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ in {

programs.zsh = {
enable = true;
autosuggestion.enable = true;
historySubstringSearch.enable = true;
sessionVariables =
commonSessionVariables
// {
Expand Down

0 comments on commit 0fb9437

Please sign in to comment.