From 7fc2bf7b805660601c83ccdd7041928052be20a2 Mon Sep 17 00:00:00 2001 From: Noah Knegt Date: Thu, 27 Feb 2025 18:42:07 +0100 Subject: [PATCH] Add antidote config --- home-manager/zsh/antidote.nix | 32 ++++++++++++++++++++++++++++++++ home-manager/zsh/default.nix | 5 ++++- home-manager/zsh/zsh.nix | 2 ++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 home-manager/zsh/antidote.nix diff --git a/home-manager/zsh/antidote.nix b/home-manager/zsh/antidote.nix new file mode 100644 index 0000000..f24ad57 --- /dev/null +++ b/home-manager/zsh/antidote.nix @@ -0,0 +1,32 @@ +{ pkgs, inputs, ... }: + +{ + programs.zsh.antidote = { + enable = true; + + plugins = [ + # popular fish-like plugins + "mattmc3/zfunctions" + "zsh-users/zsh-autosuggestions" + "zdharma-continuum/fast-syntax-highlighting kind:defer" + "zsh-users/zsh-history-substring-search" + + # set up Zsh completions with plugins + "mattmc3/ez-compinit" + "zsh-users/zsh-completions kind:fpath path:src" + + # frameworks like oh-my-zsh are supported + "getantidote/use-omz" # handle OMZ dependencies + "ohmyzsh/ohmyzsh path:lib" # load OMZ's library + + # List of plugins + "ohmyzsh/ohmyzsh path:plugins/extract" + "ohmyzsh/ohmyzsh path:plugins/git" + "ohmyzsh/ohmyzsh path:plugins/git-auto-fetch" + "ohmyzsh/ohmyzsh path:plugins/gitignore" + "ohmyzsh/ohmyzsh path:plugins/jsontools" + "ohmyzsh/ohmyzsh path:plugins/sudo" + "ohmyzsh/ohmyzsh path:plugins/tmux" + ]; + }; +} \ No newline at end of file diff --git a/home-manager/zsh/default.nix b/home-manager/zsh/default.nix index a918d24..82a9428 100644 --- a/home-manager/zsh/default.nix +++ b/home-manager/zsh/default.nix @@ -1,5 +1,8 @@ { ... }: { - imports = [ ./zsh.nix ]; + imports = [ + ./antidote.nix + ./zsh.nix + ]; } diff --git a/home-manager/zsh/zsh.nix b/home-manager/zsh/zsh.nix index 2cd69a7..6453177 100644 --- a/home-manager/zsh/zsh.nix +++ b/home-manager/zsh/zsh.nix @@ -3,5 +3,7 @@ { programs.zsh = { enable = true; + + autosuggestion.enable = true; }; } \ No newline at end of file