mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
nixpkgs update, use global fzf
This commit is contained in:
parent
3df08b721e
commit
a3e8fba7c0
6 changed files with 20 additions and 34 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue