feat(nu): fix carapace completer

This commit is contained in:
winston 2024-05-17 23:49:48 +02:00
parent 48024589aa
commit 4fef895654
Signed by: winston
GPG key ID: 3786770EDBC2B481
2 changed files with 2 additions and 11 deletions

View file

@ -53,7 +53,7 @@ let
'';
in
{
home.packages = [ pkgs.carapace ];
programs.carapace.enable = true;
programs.nushell = {
enable = true;

View file

@ -1,10 +1,6 @@
use ($nu.default-config-dir | path join 'config/keybindings.nu')
use ($nu.default-config-dir | path join 'catppuccin.nu')
let carapace_completer = {|spans|
carapace $spans.0 nushell ...$spans | from json
}
$env.PROMPT_INDICATOR = {|| "λ " }
$env.PROMPT_INDICATOR_VI_INSERT = {|| "λ " }
$env.PROMPT_INDICATOR_VI_NORMAL = {|| "$ " }
@ -77,12 +73,7 @@ $env.config = {
quick: true
partial: true
algorithm: "prefix"
external: {
enable: true
max_results: 50
completer: $carapace_completer
}
use_ls_colors: true # set this to true to enable file/path/directory completions using LS_COLORS
use_ls_colors: true
}
filesize: {