Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodachi94 committed May 21, 2024
1 parent 09644ec commit 8a15d92
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions home/common/zsh/plugins.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{ config, pkgs, zsh-craftos-select, ... }:
let
zshCompletions = with pkgs; runCommandNoCC "vendored-zsh-completions" { } ''
mkdir -p $out
${fd}/bin/fd -t f '^_[^.]+$' \
${lib.escapeShellArgs config.home.packages} \
--exec ${ripgrep}/bin/rg -0l '^#compdef' {} \
| xargs -0 ln -s -t $out/
'';

in
{
programs.zsh.plugins = [
{
Expand Down Expand Up @@ -38,6 +48,13 @@
}
];

programs.zsh.initExtra = with pkgs; ''
fpath=(
${zshCompletions}
$fpath
)
'';

programs.zsh.sessionVariables = {
# For nnn-quitcd
NNN_TMPFILE = "${config.xdg.stateHome}/nnn-quitcd-lastd";
Expand Down

0 comments on commit 8a15d92

Please sign in to comment.