From 2edb489e6d30fd5e06b14f26d29b93f1f49cc853 Mon Sep 17 00:00:00 2001 From: Atemu Date: Mon, 6 May 2024 13:48:05 +0200 Subject: [PATCH] carapace: use bash completions for nix It currently cannot complete flake outputs but carapace can be configured to bridge bash completions for certain commands. See https://github.com/carapace-sh/carapace-bin/issues/2374 --- .config/carapace/specs/nix.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .config/carapace/specs/nix.yaml diff --git a/.config/carapace/specs/nix.yaml b/.config/carapace/specs/nix.yaml new file mode 100644 index 0000000..1f8f87e --- /dev/null +++ b/.config/carapace/specs/nix.yaml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=https://carapace.sh/schemas/command.json +name: nix +description: Upstream nix bash completions work better than current carapace completions +parsing: disabled +completion: + positionalany: ["$carapace.bridge.Bash([nix])"]