use same completions for use and overlay use

This commit is contained in:
amtoine 2023-12-14 18:28:43 +01:00
parent fd56768fdc
commit 48f29b6332
No known key found for this signature in database
GPG Key ID: 37AAE9B486CFF1AB

View File

@ -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());