Skip to content

Commit

Permalink
nushell: activate carapace completer
Browse files Browse the repository at this point in the history
  • Loading branch information
Atemu committed May 6, 2024
1 parent abef415 commit adfc8e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .config/nushell/config.nu
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ let light_theme = {
}

# External completer example
# let carapace_completer = {|spans|
# carapace $spans.0 nushell ...$spans | from json
# }
let carapace_completer = {|spans|
carapace $spans.0 nushell ...$spans | from json
}

# The default config record. This is where much of your global configuration is setup.
$env.config = {
Expand Down Expand Up @@ -210,7 +210,7 @@ $env.config = {
external: {
enable: true # set to false to prevent nushell looking into $env.PATH to find more suggestions, `false` recommended for WSL users as this look up may be very slow
max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options
completer: null # check 'carapace_completer' above as an example
completer: $carapace_completer # check 'carapace_completer' above as an example
}
use_ls_colors: true # set this to true to enable file/path/directory completions using LS_COLORS
}
Expand Down

0 comments on commit adfc8e5

Please sign in to comment.