Skip to content

Commit

Permalink
should use ...$spans instead of $spans in carapace completer (#1399)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjiangqiu committed May 15, 2024
1 parent c12cec7 commit ae6d29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/external_completers.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ The solution to this involves manually checking the value to filter it out:

```nu
let carapace_completer = {|spans: list<string>|
carapace $spans.0 nushell $spans
carapace $spans.0 nushell ...$spans
| from json
| if ($in | default [] | where value == $"($spans | last)ERR" | is-empty) { $in } else { null }
}
Expand Down

0 comments on commit ae6d29a

Please sign in to comment.