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 starship_installed = not (which starship | is-empty)
|
||||||
let direnv_installed = not (which direnv | is-empty)
|
let direnv_installed = not (which direnv | is-empty)
|
||||||
|
let carapace_installed = not (which carapace | is-empty)
|
||||||
|
|
||||||
$env.config = {
|
$env.config = {
|
||||||
show_banner: false
|
show_banner: false
|
||||||
|
@ -26,7 +27,7 @@ $env.config = {
|
||||||
partial: true
|
partial: true
|
||||||
case_sensitive: false
|
case_sensitive: false
|
||||||
algorithm: "fuzzy"
|
algorithm: "fuzzy"
|
||||||
external: (if ((which carapace | length) > 0) {
|
external: (if $carapace_installed {
|
||||||
{
|
{
|
||||||
enable: true
|
enable: true
|
||||||
completer: { |spans| carapace $spans.0 nushell $spans | from json }
|
completer: { |spans| carapace $spans.0 nushell $spans | from json }
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
fzf
|
fzf
|
||||||
|
|
||||||
|
carapace
|
||||||
difftastic
|
difftastic
|
||||||
hexyl
|
hexyl
|
||||||
gitui
|
gitui
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue