From 6010fb6260f359e71d99ba25f05f9215809b3ed2 Mon Sep 17 00:00:00 2001 From: Paolo Valletta Date: Mon, 9 Nov 2026 13:36:11 +0100 Subject: [PATCH] fix(mvn): complete with compsys instead of compctl (#14241) --- plugins/mvn/mvn.plugin.zsh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/plugins/mvn/mvn.plugin.zsh b/plugins/mvn/mvn.plugin.zsh index 8477722b0..bfb0c2808 100644 --- a/plugins/mvn/mvn.plugin.zsh +++ b/plugins/mvn/mvn.plugin.zsh @@ -347,6 +347,13 @@ function listMavenCompletions { ) } -compctl -K listMavenCompletions mvn mvnw -compctl -K listMavenCompletions mvn-color -compctl -K listMavenCompletions mvn-or-mvnw +# Completion, via compsys so that tools built on it (fzf-tab, etc.) can take over. +_mvn() { + local -a commands + listMavenCompletions + # _describe splits entries on `:`, so escape it to keep goals like `dependency:tree`. + commands=("${(@)reply//:/\\:}") + _describe -t mvn-commands 'mvn command' commands +} + +compdef _mvn mvn mvnw mvn-color mvn-or-mvnw