~ruther/nixos-config

d9b932819886d771f6b35d2bf75f369883e095c2 — Frantisek Bohacek 8 months ago e617820
feat(zsh): use zsh-vi-mode, emacs plugin
1 files changed, 29 insertions(+), 6 deletions(-)

M home/modules/profiles/base.nix
M home/modules/profiles/base.nix => home/modules/profiles/base.nix +29 -6
@@ 78,19 78,42 @@ in {

      zsh = {
        enable = true;
        autosuggestion.enable = true;
        autosuggestion = {
          enable = true;
        };
        syntaxHighlighting.enable = true;
        enableCompletion = true;
        history.size = 100000;

        oh-my-zsh = {                               # Extra plugins for zsh
        enable = true;
        plugins = [ "git" ];
        };
        plugins = let
          inherit (pkgs) fetchFromGitHub;
        in [
          {
            name = "emacs";
            src = fetchFromGitHub {
              owner = "Flinner";
              repo = "emacs";
              rev = "7d12669fe2738ef98444d857f2bbeaf409de2b06";
              hash = "sha256-zqPSCziEJK32o9EzxzvhRRq5TRtj/daBEXd21XTsXsU=";
            };
          }
          {
            name = "zsh-vi-mode";
            src = pkgs.zsh-vi-mode;
            file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
          }
        ];

        # oh-my-zsh = {                               # Extra plugins for zsh
        #   enable = true;
        #   plugins = [ "git" ];
        # };

        initExtra = ''
            zstyle ':completion:*:*:*:*:*' menu select

            function exa-nixpkgs-derivation {
            nix run nixpkgs#eza -- --tree $(nix build nixpkgs#$1 --print-out-paths --out-link /tmp/$1)
              nix run nixpkgs#eza -- --tree $(nix build nixpkgs#$1 --print-out-paths --out-link /tmp/$1)
            }

            mkreal() {

Do not follow this link