nixpkgs update, use global fzf

This commit is contained in:
Rouven Seifert 2023-05-20 10:37:41 +02:00
parent 3df08b721e
commit a3e8fba7c0
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
6 changed files with 20 additions and 34 deletions

View file

@ -1,10 +1,11 @@
{ pkgs, ... }:
{
programs.command-not-found.enable = false;
environment.systemPackages = with pkgs; [
fzf
];
users.defaultUserShell = pkgs.zsh;
programs.fzf = {
fuzzyCompletion = true;
keybindings = true;
};
programs.zsh = {
enable = true;
autosuggestions = {
@ -20,14 +21,6 @@
''
source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh
zsh-newuser-install () {}
'';
# Hacky way to bind Ctrl+R to fzf. Otherwise it will be overridden
promptInit =
''
source ${pkgs.fzf}/share/fzf/completion.zsh
source ${pkgs.fzf}/share/fzf/key-bindings.zsh
'';
};
}