From 48f29b633258544c582f35f0fc0340eef0ddd7c9 Mon Sep 17 00:00:00 2001 From: amtoine Date: Thu, 14 Dec 2023 18:28:43 +0100 Subject: [PATCH] use same completions for `use` and `overlay use` --- crates/nu-cli/src/completions/completer.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/nu-cli/src/completions/completer.rs b/crates/nu-cli/src/completions/completer.rs index b6a15ff0a2..ed81782768 100644 --- a/crates/nu-cli/src/completions/completer.rs +++ b/crates/nu-cli/src/completions/completer.rs @@ -250,7 +250,9 @@ impl NuCompleter { working_set.get_span_contents(previous_expr.0).to_vec(); // Completion for .nu files - if prev_expr_str == b"use" || prev_expr_str == b"source-env" + if prev_expr_str == b"use" + || prev_expr_str == b"overlay use" + || prev_expr_str == b"source-env" { let mut completer = DotNuCompletion::new(self.engine_state.clone());