nushell: add carapace for fast completion

This commit is contained in:
Charlie Root 2024-09-20 23:47:47 +02:00
commit ded76116e9
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,6 @@
let starship_installed = not (which starship | is-empty)
let direnv_installed = not (which direnv | is-empty)
let carapace_installed = not (which carapace | is-empty)
$env.config = {
show_banner: false
@ -26,7 +27,7 @@ $env.config = {
partial: true
case_sensitive: false
algorithm: "fuzzy"
external: (if ((which carapace | length) > 0) {
external: (if $carapace_installed {
{
enable: true
completer: { |spans| carapace $spans.0 nushell $spans | from json }

View file

@ -18,6 +18,7 @@
fzf
carapace
difftastic
hexyl
gitui