Use carapace completer

This commit is contained in:
Erwin Boskma 2023-04-03 14:34:21 +02:00
parent e717eb7356
commit bd3d9ba4f9
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU
2 changed files with 6 additions and 4 deletions

View file

@ -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: {

View file

@ -19,5 +19,7 @@ in
source ${zoxide-nu}
'';
};
home.packages = [ pkgs.carapace ];
};
}