Use carapace completer
This commit is contained in:
parent
e717eb7356
commit
bd3d9ba4f9
2 changed files with 6 additions and 4 deletions
|
@ -86,9 +86,9 @@ let dark_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.
|
||||
|
@ -183,7 +183,7 @@ let-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 my 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
|
||||
}
|
||||
}
|
||||
filesize: {
|
||||
|
|
|
@ -19,5 +19,7 @@ in
|
|||
source ${zoxide-nu}
|
||||
'';
|
||||
};
|
||||
|
||||
home.packages = [ pkgs.carapace ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue