summaryrefslogtreecommitdiff
path: root/features/user/cli/shells/nushell/completion.nu
blob: b25d3875509c2fa8e4f9d9f6be4c84bcfbe26b84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Carapace Autocomplete
let carapace_completer = {|spans|
  carapace $spans.0 nushell ...$spans | from json
}
$env.config = {
  completions: {
    case_sensitive: false
    quick: true
    partial: true
    algorithm: fuzzy
    external: {
      enable: true
      max_results: 100
      completer: $carapace_completer
    }
  }
}