Skip to content

Commit

Permalink
🔧 Added fish key bind for nsearch
Browse files Browse the repository at this point in the history
Also add an overlay for `nsearch`
  • Loading branch information
theobori committed Nov 24, 2024
1 parent 2cfa017 commit b4a08e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions modules/home/cli/programs/nsearch/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
inputs,
pkgs,
config,
lib,
Expand All @@ -17,5 +16,5 @@ in
enable = mkBoolOpt false "Whether or not to enable nsearch.";
};

config = mkIf cfg.enable { home.packages = [ inputs.nsearch.packages.${pkgs.system}.default ]; };
config = mkIf cfg.enable { home.packages = with pkgs; [ nsearch ]; };
}
4 changes: 3 additions & 1 deletion modules/home/cli/shells/fish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,15 @@ in
programs.fish = {
enable = true;
interactiveShellInit = ''
# There are fish intregration from home-manager module
${getExe pkgs.nix-your-shell} --nom fish | source
set -gx GOPATH $XDG_DATA_HOME/go
set -gx PATH /usr/local/bin /usr/bin ~/.local/bin $GOPATH/bin/ $PATH $HOME/.cargo/bin
set -gx fzf_diff_highlighter delta --paging=never --line-numbers
# \c = control, \e = escape
bind --mode default \e\cn ${getExe pkgs.nsearch}
'';

shellAbbrs = {
Expand Down
3 changes: 3 additions & 0 deletions overlays/nsearch/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{ inputs, ... }:

_final: prev: { nsearch = inputs.nsearch.packages.${prev.system}.default; }

0 comments on commit b4a08e4

Please sign in to comment.