From a2732c6e6ace0faebbc0b78b4010315709fac9c4 Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Sun, 22 Jan 2023 23:07:29 +0100 Subject: be a bit smarter about fzf module --- modules/basic-tools/fzf.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/basic-tools/fzf.nix (limited to 'modules/basic-tools/fzf.nix') diff --git a/modules/basic-tools/fzf.nix b/modules/basic-tools/fzf.nix new file mode 100644 index 0000000..5e0ce0e --- /dev/null +++ b/modules/basic-tools/fzf.nix @@ -0,0 +1,10 @@ +{ lib, config, ... }: { + # integrate fzf into shell, >23.05 only + programs = + if (lib.toInt (lib.elemAt (lib.splitVersion config.system.nixos.release) 0) >= 23) then { + fzf = { + keybindings = true; + fuzzyCompletion = true; + }; + } else { }; +} -- cgit v1.3.1