Skip to content

Commit

Permalink
use same completions for use and overlay use
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Dec 14, 2023
1 parent fd56768 commit 48f29b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/nu-cli/src/completions/completer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 48f29b6

Please sign in to comment.