Skip to content

Commit

Permalink
(fish) add fish-completion-sync
Browse files Browse the repository at this point in the history
Now I can get autocomplete for CLIs installed through nix+direnv. See: direnv/direnv#443
  • Loading branch information
bigolu committed Oct 24, 2023
1 parent ab9e83a commit 4b44f31
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flake-modules/home-manager/modules/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
plugins = with pkgs.fishPlugins; [
{name = "autopair-fish"; src = autopair-fish;}
{name = "async-prompt"; src = async-prompt;}
# Using this to get shell completion for programs added to the path through nix+direnv. Issue to upstream into direnv:
# https://github.com/direnv/direnv/issues/443
{name = "completion-sync"; src = completion-sync;}
];
};

Expand Down
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@

"fish-plugin-autopair-fish" = {url = "github:jorgebucaran/autopair.fish"; flake = false;};
"fish-plugin-async-prompt" = {url = "github:acomagu/fish-async-prompt"; flake = false;};
"fish-plugin-completion-sync" = {url = "github:pfgray/fish-completion-sync"; flake = false;};
};

outputs = inputs@{ flake-parts, flake-utils, nixpkgs, ... }:
Expand Down

0 comments on commit 4b44f31

Please sign in to comment.