nushell: add carapace for fast completion
This commit is contained in:
parent
4213a3d2b8
commit
ded76116e9
2 changed files with 3 additions and 1 deletions
|
@ -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 }
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
|
||||
fzf
|
||||
|
||||
carapace
|
||||
difftastic
|
||||
hexyl
|
||||
gitui
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue